From 707ce7772de763297fe89be70f81f105e200dee7 Mon Sep 17 00:00:00 2001 From: Daira Hopwood <daira@jacaranda.org> Date: Thu, 3 Sep 2015 19:41:51 +0100 Subject: [PATCH] stopService does not necessarily return a Deferred. Signed-off-by: Daira Hopwood <daira@jacaranda.org> --- src/allmydata/test/no_network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/no_network.py b/src/allmydata/test/no_network.py index b84a7a2e..f5578ac3 100644 --- a/src/allmydata/test/no_network.py +++ b/src/allmydata/test/no_network.py @@ -385,7 +385,8 @@ class GridTestMixin: def restart_client(self, i=0): client = self.g.clients[i] - d = client.stopService() + d = defer.succeed(None) + d.addCallback(lambda ign: client.stopService()) def _make_client(ign): c = self.g.make_client(i, write_config=False) self.g.clients[i] = c -- 2.45.2