Fix hanging patronictl when RAFT is being used (#1697)

Close #1694
This commit is contained in:
Alexander Kukushkin
2020-09-16 14:03:40 +02:00
committed by GitHub
parent 83f9a031b8
commit 6706decc1c
2 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -152,4 +152,4 @@ class TestRaft(unittest.TestCase):
def test_init(self, mock_event, mock_kvstore):
mock_kvstore.return_value.applied_local_log = False
mock_event.return_value.isSet.side_effect = [False, True]
self.assertIsNotNone(Raft({'ttl': 30, 'scope': 'test', 'name': 'pg', 'patronictl': True}))
self.assertIsNotNone(Raft({'ttl': 30, 'scope': 'test', 'name': 'pg', 'patronictl': True, 'self_addr': '1'}))