mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-01 08:23:29 +02:00
wait time fixes to make testsuite complete successfully on WEC2013
This commit is contained in:
parent
82e00a3e2b
commit
ee25a49e9b
@ -207,21 +207,21 @@ void TCPServerTest::testMultiConnections()
|
|||||||
assert (srv.totalConnections() == 5);
|
assert (srv.totalConnections() == 5);
|
||||||
|
|
||||||
ss2.close();
|
ss2.close();
|
||||||
Thread::sleep(1000);
|
Thread::sleep(2000);
|
||||||
assert (srv.currentConnections() == 4);
|
assert (srv.currentConnections() == 4);
|
||||||
assert (srv.currentThreads() == 4);
|
assert (srv.currentThreads() == 4);
|
||||||
assert (srv.queuedConnections() == 0);
|
assert (srv.queuedConnections() == 0);
|
||||||
assert (srv.totalConnections() == 6);
|
assert (srv.totalConnections() == 6);
|
||||||
|
|
||||||
ss3.close();
|
ss3.close();
|
||||||
Thread::sleep(1000);
|
Thread::sleep(2000);
|
||||||
assert (srv.currentConnections() == 3);
|
assert (srv.currentConnections() == 3);
|
||||||
assert (srv.currentThreads() == 3);
|
assert (srv.currentThreads() == 3);
|
||||||
assert (srv.queuedConnections() == 0);
|
assert (srv.queuedConnections() == 0);
|
||||||
assert (srv.totalConnections() == 6);
|
assert (srv.totalConnections() == 6);
|
||||||
|
|
||||||
ss4.close();
|
ss4.close();
|
||||||
Thread::sleep(1000);
|
Thread::sleep(2000);
|
||||||
assert (srv.currentConnections() == 2);
|
assert (srv.currentConnections() == 2);
|
||||||
assert (srv.currentThreads() == 2);
|
assert (srv.currentThreads() == 2);
|
||||||
assert (srv.queuedConnections() == 0);
|
assert (srv.queuedConnections() == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user