Check that queue is empty after test

master
Bob Mottram 2019-07-09 09:52:53 +01:00
parent db6efd6458
commit 95c6d9366a
1 changed files with 4 additions and 1 deletions

View File

@ -430,6 +430,9 @@ def testFollowBetweenServers():
assert 'alice@'+aliceDomain in open(bobDir+'/accounts/bob@'+bobDomain+'/followers.txt').read()
assert 'bob@'+bobDomain in open(aliceDir+'/accounts/alice@'+aliceDomain+'/following.txt').read()
# queue item removed
assert len([name for name in os.listdir(queuePath) if os.path.isfile(os.path.join(queuePath, name))])==0
os.chdir(baseDir)
shutil.rmtree(baseDir+'/.tests')