]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Ensure that fake_inotify is used for restarted clients in MockTest.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 14 Sep 2015 19:14:29 +0000 (20:14 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 17:43:01 +0000 (18:43 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_magic_folder.py

index d9dfff0b38d9b6cc9473acb454b3f5d6a7c17dab..a885df7bce8d89a0cd2b940914020d73266b7815 100644 (file)
@@ -408,6 +408,7 @@ class MockTest(MagicFolderTestMixin, unittest.TestCase):
     def setUp(self):
         MagicFolderTestMixin.setUp(self)
         self.inotify = fake_inotify
+        self.patch(magic_folder, 'get_inotify_module', lambda: self.inotify)
 
     def notify(self, path, mask):
         self.magicfolder.uploader._notifier.event(path, mask)