Skip to content
Snippets Groups Projects
Commit a6df49d6 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

other syntax

parent 6125cc53
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ class TestConnecting(unittest.TestCase):
def test_on_fail(self):
q = {'failed': False}
c = Cluster([NodeDefinition('127.0.0.1', 'xguest', 'xguest', heartbeat=20)], on_fail=lambda: q.update(failed=True))
c = Cluster(NodeDefinition('127.0.0.1', 'xguest', 'xguest', heartbeat=20), on_fail=lambda: q.update(failed=True))
c.start()
time.sleep(5)
c.shutdown()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment