From: David Stainton Date: Mon, 21 Dec 2015 16:18:19 +0000 (+0200) Subject: add hook callback X-Git-Url: https://git.rkrishnan.org/tahoe_css?a=commitdiff_plain;h=f4f41683660f104f2a40d9f45924cc2531dede2d;p=tahoe-lafs%2Ftahoe-lafs.git add hook callback --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 56cd58e9..f5179769 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -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