From a3e6c44f118a63a2296b4b0e025593ebb104050a Mon Sep 17 00:00:00 2001 From: lganzzzo Date: Wed, 6 Nov 2019 13:49:52 +0200 Subject: [PATCH] Tests. More logs - network/virtual_/InterfaceTest.cpp --- test/oatpp/web/ClientRetryTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/oatpp/web/ClientRetryTest.cpp b/test/oatpp/web/ClientRetryTest.cpp index d0897de7..d33f69aa 100644 --- a/test/oatpp/web/ClientRetryTest.cpp +++ b/test/oatpp/web/ClientRetryTest.cpp @@ -169,6 +169,7 @@ void ClientRetryTest::onRun() { { + OATPP_LOGI(TAG, "Test: no server available"); oatpp::test::PerformanceChecker checker("test: no server available"); auto retryPolicy = std::make_shared(2, std::chrono::seconds(1)); @@ -178,6 +179,8 @@ void ClientRetryTest::onRun() { auto response = client->getRoot(); auto ticks = checker.getElapsedTicks(); + OATPP_LOGD(TAG, "ticks=%d", ticks); + OATPP_ASSERT(response.get() == nullptr); OATPP_ASSERT(ticks >= 2 * 1000 * 1000 /* 2s */); OATPP_ASSERT(ticks < 3 * 1000 * 1000 /* 3s */); @@ -186,6 +189,7 @@ void ClientRetryTest::onRun() { { + OATPP_LOGI(TAG, "Test: server pops up"); oatpp::test::PerformanceChecker checker("test: server pops up"); auto retryPolicy = std::make_shared(10 * 10, std::chrono::milliseconds(100));