From 44f20e629e429b0b72abd7dc922aeb9ff7a6032e Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 9 Jul 2015 23:40:05 +0100 Subject: [PATCH] Add missing Deferred creation. Signed-off-by: Daira Hopwood --- src/allmydata/test/test_magic_folder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2