From 1953628d319dc32abf81d011955c4649c1cef3d8 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 14 Sep 2015 20:14:29 +0100 Subject: [PATCH] Ensure that fake_inotify is used for restarted clients in MockTest. Signed-off-by: Daira Hopwood --- src/allmydata/test/test_magic_folder.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.45.2