File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ BOOST_AUTO_TEST_CASE(http_client_get_test) {
26
26
response.get_status (status_);
27
27
response.get_status_message (status_message_);
28
28
BOOST_CHECK_EQUAL ( version_.substr (0 ,7 ), " HTTP/1." );
29
- BOOST_CHECK_EQUAL ( status_, 302u );
30
- BOOST_CHECK_EQUAL ( status_message_, std::string (" Found" ) );
29
+ BOOST_CHECK ( status_ == 302u || status_ == 200u );
30
+ BOOST_CHECK ( status_message_ == std::string (" Found" ) || status_message_ == std::string ( " OK " ) );
31
31
}
32
32
33
33
#ifdef NETWORK_ENABLE_HTTPS
@@ -47,8 +47,8 @@ BOOST_AUTO_TEST_CASE(https_client_get_test) {
47
47
response.get_status (status_);
48
48
response.get_status_message (status_message_);
49
49
BOOST_CHECK_EQUAL ( version_.substr (0 ,7 ), " HTTP/1." );
50
- BOOST_CHECK_EQUAL ( status_, 302u );
51
- BOOST_CHECK_EQUAL ( status_message_, std::string (" Found" ) );
50
+ BOOST_CHECK ( status_ == 302u || status_ == 200u );
51
+ BOOST_CHECK ( status_message_ == std::string (" Found" ) || status_message_ == std::string ( " OK " ) );
52
52
}
53
53
54
54
#endif
You can’t perform that action at this time.
0 commit comments