]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
stopService does not necessarily return a Deferred.
authorDaira Hopwood <daira@jacaranda.org>
Thu, 3 Sep 2015 18:41:51 +0000 (19:41 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 17:42:59 +0000 (18:42 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/no_network.py

index b84a7a2e969f90600b617745bb48081e043ec651..f5578ac326aaa26bd34264a1cd248c0a5c98dedb 100644 (file)
@@ -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