reduce number of connections for FullAsyncTest(real-port) in order not to fail on CI

This commit is contained in:
lganzzzo 2019-04-28 04:59:10 +03:00
parent 476a16fa8f
commit 6ad0f4f16c
3 changed files with 5 additions and 3 deletions

View File

@ -108,7 +108,7 @@ void runTests() {
oatpp::test::web::FullAsyncClientTest test_virtual(0, 10000);
test_virtual.run(20);
oatpp::test::web::FullAsyncClientTest test_port(8000, 100);
oatpp::test::web::FullAsyncClientTest test_port(8000, 10);
test_port.run(1);
}

View File

@ -132,6 +132,7 @@ void FullAsyncTest::onRun() {
auto client = app::Client::createShared(requestExecutor, objectMapper);
auto connection = client->getConnection();
OATPP_ASSERT(connection);
v_int32 iterationsStep = 1000;
@ -186,7 +187,7 @@ void FullAsyncTest::onRun() {
}
if((i + 1) % iterationsStep == 0) {
OATPP_LOGD("i", "%d", i + 1);
OATPP_LOGD("i", "%d, tick=%d", i + 1, oatpp::base::Environment::getMicroTickCount());
}
}

View File

@ -127,6 +127,7 @@ void FullTest::onRun() {
auto client = app::Client::createShared(requestExecutor, objectMapper);
auto connection = client->getConnection();
OATPP_ASSERT(connection);
v_int32 iterationsStep = 1000;
@ -202,7 +203,7 @@ void FullTest::onRun() {
}
if((i + 1) % iterationsStep == 0) {
OATPP_LOGD("i", "%d", i + 1);
OATPP_LOGD("i", "%d, tick=%d", i + 1, oatpp::base::Environment::getMicroTickCount());
}
}