From: Daira Hopwood Date: Mon, 14 Sep 2015 19:14:29 +0000 (+0100) Subject: Ensure that fake_inotify is used for restarted clients in MockTest. X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=9093fd6552fbb597b405b35256eb6d977738b470;p=tahoe-lafs%2Ftahoe-lafs.git Ensure that fake_inotify is used for restarted clients in MockTest. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index d9dfff0b..a885df7b 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -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)