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

o

parent 766aba72
No related branches found
No related tags found
No related merge requests found
...@@ -24,11 +24,7 @@ class TestConnecting(unittest.TestCase): ...@@ -24,11 +24,7 @@ class TestConnecting(unittest.TestCase):
def test_on_clean(self): def test_on_clean(self):
q = {'failed': False} q = {'failed': False}
def on_fail(): c = Cluster([NODE], on_fail=lambda: q.update(failed=True))
raise Exception()
q['failed'] = True
c = Cluster([NODE], on_fail=on_fail)
c.start(wait=True) c.start(wait=True)
c.shutdown() c.shutdown()
time.sleep(5) time.sleep(5)
......
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