Update trantor (#1046)
This commit is contained in:
parent
3eb5bcd1dd
commit
4a6f298661
|
@ -748,6 +748,7 @@ void doTest(const HttpClientPtr &client, std::shared_ptr<test::Case> TEST_CTX)
|
||||||
req->setPath("/RangeTestController/10/20");
|
req->setPath("/RangeTestController/10/20");
|
||||||
client->sendRequest(
|
client->sendRequest(
|
||||||
req, [req, TEST_CTX](ReqResult result, const HttpResponsePtr &resp) {
|
req, [req, TEST_CTX](ReqResult result, const HttpResponsePtr &resp) {
|
||||||
|
LOG_DEBUG << "result=" << (int)result;
|
||||||
REQUIRE(result == ReqResult::Ok);
|
REQUIRE(result == ReqResult::Ok);
|
||||||
CHECK(resp->getStatusCode() == k206PartialContent);
|
CHECK(resp->getStatusCode() == k206PartialContent);
|
||||||
CHECK(resp->getBody() == "01234567890123456789");
|
CHECK(resp->getBody() == "01234567890123456789");
|
||||||
|
@ -1030,7 +1031,7 @@ DROGON_TEST(HttpsTest)
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
trantor::Logger::setLogLevel(trantor::Logger::LogLevel::kDebug);
|
trantor::Logger::setLogLevel(trantor::Logger::LogLevel::kTrace);
|
||||||
loadFileLengths();
|
loadFileLengths();
|
||||||
|
|
||||||
std::promise<void> p1;
|
std::promise<void> p1;
|
||||||
|
|
2
trantor
2
trantor
|
@ -1 +1 @@
|
||||||
Subproject commit d38624009fc59d5522f8d69f64e2b7c66e3ebd25
|
Subproject commit 9f515fe76cfdbef8beff193a5d2c876dd0bdf2fa
|
Loading…
Reference in New Issue