From daaea4d5fd63cb7a74e65a8812bb95de0a0c53d8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Jul 2019 23:26:15 +0100 Subject: [PATCH] Longer waits --- tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests.py b/tests.py index ec2d19475..db4d712c7 100644 --- a/tests.py +++ b/tests.py @@ -320,7 +320,7 @@ def testFollowBetweenServers(): print('Alice online: '+str(testServerAliceRunning)) print('Bob online: '+str(testServerBobRunning)) print('Eve online: '+str(testServerEveRunning)) - assert ctr<=10 + assert ctr<=30 time.sleep(1) # In the beginning all was calm and there were no follows @@ -373,7 +373,7 @@ def testFollowBetweenServers(): queuePath=bobDir+'/accounts/bob@'+bobDomain+'/queue' inboxPath=bobDir+'/accounts/bob@'+bobDomain+'/inbox' eveMessageArrived=False - for i in range(5): + for i in range(20): time.sleep(1) if os.path.isdir(inboxPath): if len([name for name in os.listdir(inboxPath) if os.path.isfile(os.path.join(inboxPath, name))])>1: @@ -398,7 +398,7 @@ def testFollowBetweenServers(): queuePath=bobDir+'/accounts/bob@'+bobDomain+'/queue' inboxPath=bobDir+'/accounts/bob@'+bobDomain+'/inbox' aliceMessageArrived=False - for i in range(5): + for i in range(20): time.sleep(1) if os.path.isdir(inboxPath): if len([name for name in os.listdir(inboxPath) if os.path.isfile(os.path.join(inboxPath, name))])>1: