@@ -14,19 +14,21 @@ namespace http = boost::network::http;
14
14
BOOST_AUTO_TEST_CASE_TEMPLATE (http_get_test_timeout_1_0, T, tag_types) {
15
15
typedef http::basic_client<T, 1 , 0 > client;
16
16
typename client::request request (" http://localhost:12121/" );
17
- client client_;
18
17
typename client::response response_;
18
+ client client_;
19
19
boost::uint16_t port_ = port (request);
20
+ typename client::response::string_type temp;
20
21
BOOST_CHECK_EQUAL ( 12121 , port_ );
21
- BOOST_CHECK_THROW ( response_ = client_.get (request); body (response_); , std::exception );
22
+ BOOST_CHECK_THROW ( response_ = client_.get (request); temp = body (response_); , std::exception );
22
23
}
23
24
24
25
BOOST_AUTO_TEST_CASE_TEMPLATE (http_get_test_timeout_1_1, T, tag_types) {
25
26
typedef http::basic_client<T, 1 , 1 > client_type;
26
27
typename client_type::request request (" http://localhost:12121/" );
27
28
typename client_type::response response_;
28
29
boost::uint16_t port_ = port (request);
30
+ typename client_type::response::string_type temp;
29
31
BOOST_CHECK_EQUAL ( 12121 , port_ );
30
32
client_type client_;
31
- BOOST_CHECK_THROW ( response_ = client_.get (request); body (response_); , std::exception );
33
+ BOOST_CHECK_THROW ( response_ = client_.get (request); temp = body (response_); , std::exception );
32
34
}
0 commit comments