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/%5B/frontends/%22file:/flags/?a=commitdiff_plain;h=0473b3e0cd55498e8f4224b493c59728ddb44e7a;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)