mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-27 02:16:16 +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();
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user