mirror of https://gitlab.com/bashrc2/epicyon
Longer waits
parent
64440c715e
commit
daaea4d5fd
6
tests.py
6
tests.py
|
@ -320,7 +320,7 @@ def testFollowBetweenServers():
|
||||||
print('Alice online: '+str(testServerAliceRunning))
|
print('Alice online: '+str(testServerAliceRunning))
|
||||||
print('Bob online: '+str(testServerBobRunning))
|
print('Bob online: '+str(testServerBobRunning))
|
||||||
print('Eve online: '+str(testServerEveRunning))
|
print('Eve online: '+str(testServerEveRunning))
|
||||||
assert ctr<=10
|
assert ctr<=30
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
# In the beginning all was calm and there were no follows
|
# In the beginning all was calm and there were no follows
|
||||||
|
@ -373,7 +373,7 @@ def testFollowBetweenServers():
|
||||||
queuePath=bobDir+'/accounts/bob@'+bobDomain+'/queue'
|
queuePath=bobDir+'/accounts/bob@'+bobDomain+'/queue'
|
||||||
inboxPath=bobDir+'/accounts/bob@'+bobDomain+'/inbox'
|
inboxPath=bobDir+'/accounts/bob@'+bobDomain+'/inbox'
|
||||||
eveMessageArrived=False
|
eveMessageArrived=False
|
||||||
for i in range(5):
|
for i in range(20):
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
if os.path.isdir(inboxPath):
|
if os.path.isdir(inboxPath):
|
||||||
if len([name for name in os.listdir(inboxPath) if os.path.isfile(os.path.join(inboxPath, name))])>1:
|
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'
|
queuePath=bobDir+'/accounts/bob@'+bobDomain+'/queue'
|
||||||
inboxPath=bobDir+'/accounts/bob@'+bobDomain+'/inbox'
|
inboxPath=bobDir+'/accounts/bob@'+bobDomain+'/inbox'
|
||||||
aliceMessageArrived=False
|
aliceMessageArrived=False
|
||||||
for i in range(5):
|
for i in range(20):
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
if os.path.isdir(inboxPath):
|
if os.path.isdir(inboxPath):
|
||||||
if len([name for name in os.listdir(inboxPath) if os.path.isfile(os.path.join(inboxPath, name))])>1:
|
if len([name for name in os.listdir(inboxPath) if os.path.isfile(os.path.join(inboxPath, name))])>1:
|
||||||
|
|
Loading…
Reference in New Issue