From: Daira Hopwood Date: Thu, 9 Jul 2015 22:40:05 +0000 (+0100) Subject: Add missing Deferred creation. X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/status?a=commitdiff_plain;h=51f0c4de6920446ae96a653fcc9ff3391dde1251;p=tahoe-lafs%2Ftahoe-lafs.git Add missing Deferred creation. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 21cacc13..ac5e0d9a 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -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)