mirror of
https://github.com/django/daphne.git
synced 2025-07-30 00:49:44 +03:00
Fix sigterm handler test
This commit is contained in:
parent
34a047a6ff
commit
601056f712
|
@ -132,6 +132,5 @@ class WorkerGroupTests(ChannelTestCase):
|
||||||
t = threading.Thread(target=wkr.run)
|
t = threading.Thread(target=wkr.run)
|
||||||
t.start()
|
t.start()
|
||||||
threads.append(t)
|
threads.append(t)
|
||||||
self.worker.sigterm_handler(None, None)
|
with self.assertRaises(SystemExit):
|
||||||
for t in threads:
|
self.worker.sigterm_handler(None, None)
|
||||||
t.join()
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user