restart_client needs to remove the old client from its parent, not just stop it.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 8 Sep 2015 14:29:48 +0000 (15:29 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 17:43:00 +0000 (18:43 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/no_network.py

index f5578ac326aaa26bd34264a1cd248c0a5c98dedb..4e6249e5edc70c5c4d6c31b953abfcee4e79d4f0 100644 (file)
@@ -386,7 +386,7 @@ class GridTestMixin:
     def restart_client(self, i=0):
         client = self.g.clients[i]
         d = defer.succeed(None)
-        d.addCallback(lambda ign: client.stopService())
+        d.addCallback(lambda ign: self.g.removeService(client))
         def _make_client(ign):
             c = self.g.make_client(i, write_config=False)
             self.g.clients[i] = c