From 3ec54282dc7557dc113cbec3d8ec51cd6555d6e4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Jul 2020 22:56:38 +0100 Subject: [PATCH] Include calendar file in tests --- tests.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index 9cd7d21d..a0a60dfd 100644 --- a/tests.py +++ b/tests.py @@ -1403,10 +1403,18 @@ def testClientToServer(): '/followers.txt').read(): if os.path.isfile(bobDir + '/accounts/bob@' + bobDomain + '/following.txt'): - if 'alice@' + aliceDomain + ':' + str(alicePort) in \ + aliceHandleStr = \ + 'alice@' + aliceDomain + ':' + str(alicePort) + if aliceHandleStr in \ open(bobDir + '/accounts/bob@' + bobDomain + '/following.txt').read(): - break + if os.path.isfile(bobDir + '/accounts/bob@' + + bobDomain + + '/followingCalendar.txt'): + if aliceHandleStr in \ + open(bobDir + '/accounts/bob@' + bobDomain + + '/followingCalendar.txt').read(): + break time.sleep(1) assert os.path.isfile(aliceDir + '/accounts/alice@' + aliceDomain +