From 07f5de5648409f3eef4863e5cd7845a9aea90a86 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Jul 2019 23:38:35 +0100 Subject: [PATCH] Stop eve --- tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 91a47a07..9c54a3ef 100644 --- a/tests.py +++ b/tests.py @@ -310,7 +310,7 @@ def testFollowBetweenServers(): assert thrBob.isAlive()==True assert thrEve.isAlive()==True - # wait for both servers to be running + # wait for all servers to be running ctr=0 while not (testServerAliceRunning and testServerBobRunning and testServerEveRunning): time.sleep(1) @@ -417,6 +417,10 @@ def testFollowBetweenServers(): thrBob.kill() thrBob.join() assert thrBob.isAlive()==False + + thrEve.kill() + thrEve.join() + assert thrEve.isAlive()==False assert os.path.isfile(bobDir+'/accounts/bob@'+bobDomain+'/ocap/accept/'+httpPrefix+':##'+aliceDomain+':'+str(alicePort)+'#users#alice.json') assert os.path.isfile(aliceDir+'/accounts/alice@'+aliceDomain+'/ocap/granted/'+httpPrefix+':##'+bobDomain+':'+str(bobPort)+'#users#bob.json')