mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-16 06:56:41 +02:00
fix(tests): another attempt at fixing the flaky testSendFile*()
This commit is contained in:
parent
db88e0ec00
commit
47a77751fb
@ -751,6 +751,7 @@ void SocketTest::testSendFile()
|
||||
istr.close();
|
||||
ss.close();
|
||||
|
||||
Poco::Thread::sleep(200);
|
||||
while (srv.currentConnections() > 0)
|
||||
{
|
||||
Poco::Thread::sleep(100);
|
||||
@ -789,6 +790,7 @@ void SocketTest::testSendFileLarge()
|
||||
istr.close();
|
||||
ss.close();
|
||||
|
||||
Poco::Thread::sleep(200);
|
||||
while (srv.currentConnections() > 0)
|
||||
{
|
||||
Poco::Thread::sleep(100);
|
||||
@ -830,6 +832,7 @@ void SocketTest::testSendFileRange()
|
||||
istr.close();
|
||||
ss.close();
|
||||
|
||||
Poco::Thread::sleep(200);
|
||||
while (srv.currentConnections() > 0)
|
||||
{
|
||||
Poco::Thread::sleep(100);
|
||||
|
@ -274,6 +274,7 @@ void SecureStreamSocketTest::testSendFile()
|
||||
istr.close();
|
||||
ss.close();
|
||||
|
||||
Poco::Thread::sleep(200);
|
||||
while (srv.currentConnections() > 0)
|
||||
{
|
||||
Poco::Thread::sleep(100);
|
||||
@ -312,6 +313,7 @@ void SecureStreamSocketTest::testSendFileLarge()
|
||||
istr.close();
|
||||
ss.close();
|
||||
|
||||
Poco::Thread::sleep(200);
|
||||
while (srv.currentConnections() > 0)
|
||||
{
|
||||
Poco::Thread::sleep(100);
|
||||
@ -353,6 +355,7 @@ void SecureStreamSocketTest::testSendFileRange()
|
||||
istr.close();
|
||||
ss.close();
|
||||
|
||||
Poco::Thread::sleep(200);
|
||||
while (srv.currentConnections() > 0)
|
||||
{
|
||||
Poco::Thread::sleep(100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user