Compatibility with kazoo-2.6.0 (#872)

Recently 2.6.0 was release which changes the way how create_connection method is called. Before it was passing two arguments, and in the new version all argument names are specified explicitly.
This commit is contained in:
Alexander Kukushkin
2018-11-19 14:26:20 +01:00
committed by GitHub
parent a13cc8b847
commit fb01aaebc5
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -113,6 +113,7 @@ class TestPatroniSequentialThreadingHandler(unittest.TestCase):
def test_create_connection(self):
self.assertIsNotNone(self.handler.create_connection(()))
self.assertIsNotNone(self.handler.create_connection((), 40))
self.assertIsNotNone(self.handler.create_connection(timeout=40))
class TestZooKeeper(unittest.TestCase):