Fix a watchdog unit test on OS X.

This commit is contained in:
Oleksii Kliukin
2017-07-28 16:45:29 +02:00
parent f8b3703d6e
commit 9f9acb6a55
+1
View File
@@ -135,6 +135,7 @@ class TestWatchdog(unittest.TestCase):
self.assertIsNone(wd.disable()) self.assertIsNone(wd.disable())
self.assertIsNone(wd.keepalive()) self.assertIsNone(wd.keepalive())
@patch('platform.system', Mock(return_value='Linux'))
def test_config_reload(self): def test_config_reload(self):
watchdog = Watchdog({'ttl': 30, 'loop_wait': 15, 'watchdog': {'mode': 'required'}}) watchdog = Watchdog({'ttl': 30, 'loop_wait': 15, 'watchdog': {'mode': 'required'}})
self.assertTrue(watchdog.activate()) self.assertTrue(watchdog.activate())