From: Daira Hopwood Date: Thu, 3 Sep 2015 19:21:10 +0000 (+0100) Subject: Solve a potential race condition by waiting until the uploader is started. X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri?a=commitdiff_plain;h=4b056ea6d3a1ebba8d53c990d2ffb39c22ce17af;p=tahoe-lafs%2Ftahoe-lafs.git Solve a potential race condition by waiting until the uploader is started. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 3d76799f..ecb08a6a 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -49,6 +49,7 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual def _restarted(ign): print "_restarted" self.magicfolder = self.get_client().getServiceNamed('magic-folder') + return self.magicfolder.uploader.started_d d.addCallback(_restarted) return d