Skip to content

Commit ed6ff63

Browse files
yhagerdeanberris
authored andcommitted
fix client_get_streaming_test (cpp-netlib#840)
* fix client_get_streaming_test * perform client_get_streaming_test only if SSL is enabled * test for BOOST_NETWORK_ENABLE_HTTPS for https streaming test
1 parent 604d611 commit ed6ff63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/network/test/http/client_get_streaming_test.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ struct body_handler {
2525

2626
TYPED_TEST_CASE(HTTPClientTest, ClientTypes);
2727

28+
#ifdef BOOST_NETWORK_ENABLE_HTTPS
2829
TYPED_TEST(HTTPClientTest, GetStreamingTest) {
29-
typename TypeParam::request request("http://www.boost.org");
30+
typename TypeParam::request request("https://www.boost.org");
3031
typename TypeParam::response response;
3132
typename TypeParam::string_type body_string;
3233
typename TypeParam::string_type dummy_body;
@@ -47,3 +48,4 @@ TYPED_TEST(HTTPClientTest, GetStreamingTest) {
4748
}
4849
EXPECT_EQ(dummy_body, typename TypeParam::string_type());
4950
}
51+
#endif

0 commit comments

Comments
 (0)