From: David Stainton Date: Wed, 27 Jan 2016 15:59:45 +0000 (+0000) Subject: Fix cleanup after test_periodic_full_scan. X-Git-Url: https://git.rkrishnan.org/specifications/%5B/%5D%20/index.php?a=commitdiff_plain;h=dc41fa111c108c3e0528b33132cdb176573ff6af;p=tahoe-lafs%2Ftahoe-lafs.git Fix cleanup after test_periodic_full_scan. --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index 383a41ca..7920ec58 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -1245,7 +1245,11 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase): return processed_d d.addCallback(_advance_clock) d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.files_uploaded'), 1)) - d.addCallback(lambda ign: self.magicfolder.finish()) + def cleanup(res): + d2 = self.magicfolder.finish() + alice_clock.advance(0) + return d2 + d.addCallback(cleanup) return d class RealTest(MagicFolderTestMixin, unittest.TestCase):