From 160762dea305940782c3438e4e74a772bec0b40d Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 8 Sep 2015 15:29:48 +0100 Subject: [PATCH] restart_client needs to remove the old client from its parent, not just stop it. Signed-off-by: Daira Hopwood --- src/allmydata/test/no_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/test/no_network.py b/src/allmydata/test/no_network.py index f5578ac3..4e6249e5 100644 --- a/src/allmydata/test/no_network.py +++ b/src/allmydata/test/no_network.py @@ -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 -- 2.45.2