mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
reduce number of connections for FullAsyncTest(real-port) in order not to fail on CI
This commit is contained in:
parent
476a16fa8f
commit
6ad0f4f16c
@ -108,7 +108,7 @@ void runTests() {
|
|||||||
oatpp::test::web::FullAsyncClientTest test_virtual(0, 10000);
|
oatpp::test::web::FullAsyncClientTest test_virtual(0, 10000);
|
||||||
test_virtual.run(20);
|
test_virtual.run(20);
|
||||||
|
|
||||||
oatpp::test::web::FullAsyncClientTest test_port(8000, 100);
|
oatpp::test::web::FullAsyncClientTest test_port(8000, 10);
|
||||||
test_port.run(1);
|
test_port.run(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -132,6 +132,7 @@ void FullAsyncTest::onRun() {
|
|||||||
auto client = app::Client::createShared(requestExecutor, objectMapper);
|
auto client = app::Client::createShared(requestExecutor, objectMapper);
|
||||||
|
|
||||||
auto connection = client->getConnection();
|
auto connection = client->getConnection();
|
||||||
|
OATPP_ASSERT(connection);
|
||||||
|
|
||||||
v_int32 iterationsStep = 1000;
|
v_int32 iterationsStep = 1000;
|
||||||
|
|
||||||
@ -186,7 +187,7 @@ void FullAsyncTest::onRun() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if((i + 1) % iterationsStep == 0) {
|
if((i + 1) % iterationsStep == 0) {
|
||||||
OATPP_LOGD("i", "%d", i + 1);
|
OATPP_LOGD("i", "%d, tick=%d", i + 1, oatpp::base::Environment::getMicroTickCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -127,6 +127,7 @@ void FullTest::onRun() {
|
|||||||
auto client = app::Client::createShared(requestExecutor, objectMapper);
|
auto client = app::Client::createShared(requestExecutor, objectMapper);
|
||||||
|
|
||||||
auto connection = client->getConnection();
|
auto connection = client->getConnection();
|
||||||
|
OATPP_ASSERT(connection);
|
||||||
|
|
||||||
v_int32 iterationsStep = 1000;
|
v_int32 iterationsStep = 1000;
|
||||||
|
|
||||||
@ -202,7 +203,7 @@ void FullTest::onRun() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if((i + 1) % iterationsStep == 0) {
|
if((i + 1) % iterationsStep == 0) {
|
||||||
OATPP_LOGD("i", "%d", i + 1);
|
OATPP_LOGD("i", "%d, tick=%d", i + 1, oatpp::base::Environment::getMicroTickCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user