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