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/frontends/reliability?a=commitdiff_plain;h=1953628d319dc32abf81d011955c4649c1cef3d8;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)