14 lines
528 B
Diff
14 lines
528 B
Diff
Wait a bit longer, otherwise the workers might
|
|
not have time to finish restarting.
|
|
|
|
--- a/tests/supervisors/test_multiprocess.py
|
|
+++ b/tests/supervisors/test_multiprocess.py
|
|
@@ -132,7 +132,7 @@ def test_multiprocess_sighup() -> None:
|
|
time.sleep(1)
|
|
pids = [p.pid for p in supervisor.processes]
|
|
supervisor.signal_queue.append(signal.SIGHUP)
|
|
- time.sleep(1)
|
|
+ time.sleep(3)
|
|
assert pids != [p.pid for p in supervisor.processes]
|
|
supervisor.signal_queue.append(signal.SIGINT)
|
|
supervisor.join_all()
|