From 85b259743f00c2c72f5759771e6f58c8532f5646 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Sun, 8 Oct 2017 04:48:34 +0200
Subject: [PATCH] o

---
 tests/test_clustering/test_things.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/test_clustering/test_things.py b/tests/test_clustering/test_things.py
index 8de0bd6..d5a04e6 100644
--- a/tests/test_clustering/test_things.py
+++ b/tests/test_clustering/test_things.py
@@ -24,11 +24,7 @@ class TestConnecting(unittest.TestCase):
 
     def test_on_clean(self):
         q = {'failed': False}
-        def on_fail():
-            raise Exception()
-            q['failed'] = True
-
-        c = Cluster([NODE], on_fail=on_fail)
+        c = Cluster([NODE], on_fail=lambda: q.update(failed=True))
         c.start(wait=True)
         c.shutdown()
         time.sleep(5)
-- 
GitLab