mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Fix a watchdog unit test on OS X.
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user