]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
add hook callback 2635.periodic-uploader-scan.3
authorDavid Stainton <dstainton415@gmail.com>
Mon, 21 Dec 2015 16:18:19 +0000 (18:18 +0200)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 29 Dec 2015 15:17:08 +0000 (15:17 +0000)
src/allmydata/test/test_magic_folder.py

index 56cd58e9791db1980eb9aed395258887fda738f3..f5179769253f707eff277d07e16b0eea84407e4f 100644 (file)
@@ -1240,6 +1240,7 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase):
         def hook(res):
             uploaded_d = self.magicfolder.uploader.set_hook('processed')
             return uploaded_d
+        d.addCallback(hook)
         d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.files_uploaded'), 1))
         d.addCallback(lambda ign: self.magicfolder.finish())
         return d