]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add missing Deferred creation.
authorDaira Hopwood <daira@jacaranda.org>
Thu, 9 Jul 2015 22:40:05 +0000 (23:40 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 1 Oct 2015 00:19:44 +0000 (01:19 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_magic_folder.py

index 21cacc13564dbd989ad54828e7ddb4b0ebe5e68a..ac5e0d9a0003da88e4db4f8a630bb264e970198c 100644 (file)
@@ -286,9 +286,9 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual
         previously_uploaded = self._get_count('magic_folder.objects_succeeded')
         previously_disappeared = self._get_count('magic_folder.objects_disappeared')
 
-
         # Note: this relies on the fact that we only get one IN_CLOSE_WRITE notification per file
         # (otherwise we would get a defer.AlreadyCalledError). Should we be relying on that?
+        d = defer.Deferred()
         self.magicfolder.set_processed_callback(d.callback)
 
         path_u = abspath_expanduser_unicode(name_u, base=self.local_dir)