From: Daira Hopwood Date: Wed, 15 Apr 2015 13:03:03 +0000 (+0100) Subject: DropUploader.startService returns a deferred; don't drop it. X-Git-Url: https://git.rkrishnan.org/simplejson/components/%22doc.html/something?a=commitdiff_plain;h=101e7022ca831c9904f8d7b8cc0e3d819e65c6c7;p=tahoe-lafs%2Ftahoe-lafs.git DropUploader.startService returns a deferred; don't drop it. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index ae5bb236..3583ca68 100644 --- a/src/allmydata/test/test_drop_upload.py +++ b/src/allmydata/test/test_drop_upload.py @@ -81,9 +81,10 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin, NonA self.uploader = DropUploader(self.client, self.upload_dircap, self.local_dir.encode('utf-8'), "magicfolderdb.sqlite", inotify=self.inotify) self.uploader.setServiceParent(self.client) - self.uploader.startService() + d = self.uploader.startService() self.uploader.upload_ready() - return None + return d + d.addCallback(_made_upload_dir) # Write something short enough for a LIT file.