mirror of
https://github.com/django/daphne.git
synced 2025-07-29 00:19:45 +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.start()
|
||||
threads.append(t)
|
||||
self.worker.sigterm_handler(None, None)
|
||||
for t in threads:
|
||||
t.join()
|
||||
with self.assertRaises(SystemExit):
|
||||
self.worker.sigterm_handler(None, None)
|
||||
|
|
Loading…
Reference in New Issue
Block a user