Skip to content

Commit ed6ff63

Browse files
yhagerdeanberris
authored andcommitted
fix client_get_streaming_test (#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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy