1
|
#if defined(HAVE_CONFIG_H)
|
2
|
#include "config.h"
|
3
|
#endif
|
4
|
|
5
|
#include "IntegrationTestHelper.hpp"
|
6
|
#include <chrono>
|
7
|
|
8
|
BOOST_FIXTURE_TEST_SUITE(HttpSuite, IntegrationFixture)
|
9
|
|
10
|
BOOST_AUTO_TEST_CASE(continuation_requests_should_work)
|
11
|
{
|
12
|
size_t n = 0;
|
13
|
std::string payload{"HelloHelloHelloHelloHelloHelloHelloHelloHelloHello"};
|
14
|
BOOST_REQUIRE_EQUAL(0,aborted_count());
|
15
|
BOOST_REQUIRE_EQUAL(n,require_http_get_url_scheduled("/test?stream=",eWaitDone));
|
16
|
BOOST_REQUIRE_EQUAL(200,nth_msg(n).status());
|
17
|
BOOST_REQUIRE_EQUAL(boost::system::error_code(),nth_err(n));
|
18
|
BOOST_REQUIRE_EQUAL(payload,nth_msg(n).body());
|
19
|
BOOST_REQUIRE_EQUAL(0,aborted_count());
|
20
|
}
|
21
|
|
22
|
BOOST_AUTO_TEST_SUITE_END()
|