summaryrefslogtreecommitdiff
path: root/test/service.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-03-12 10:19:51 -0800
committerDana Powers <dana.powers@gmail.com>2016-03-12 10:19:51 -0800
commit590d75a76a4b9d666a0340daef8ef328ca87e066 (patch)
tree492e6e27d897b29b172e67bb3c79665248a04c28 /test/service.py
parent11cf12ff531919e9ade2d7ebf55e9f0f6a1592da (diff)
downloadkafka-python-590d75a76a4b9d666a0340daef8ef328ca87e066.tar.gz
Improve Zookeeper / Kafka Fixture management
- spawn fixtures via daemon threads - close fixtures atexit and in __del__ to avoid interpreter hangs - raise Exception on timeouts in open()
Diffstat (limited to 'test/service.py')
-rw-r--r--test/service.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/service.py b/test/service.py
index ea29c33..0a9ee72 100644
--- a/test/service.py
+++ b/test/service.py
@@ -43,6 +43,7 @@ class SpawnedService(threading.Thread):
self.should_die = threading.Event()
self.child = None
self.alive = False
+ self.daemon = True
def run(self):
self.run_with_handles()