fix hang build
This commit is contained in:
parent
b0ecb3170f
commit
e0b7624414
|
@ -19,7 +19,7 @@ def test_multiprocessing():
|
||||||
process.terminate()
|
process.terminate()
|
||||||
|
|
||||||
signal.signal(signal.SIGALRM, stop_on_alarm)
|
signal.signal(signal.SIGALRM, stop_on_alarm)
|
||||||
|
signal.alarm(3)
|
||||||
app.run(HOST, PORT, workers=num_workers)
|
app.run(HOST, PORT, workers=num_workers)
|
||||||
signal.alarm(1)
|
|
||||||
|
|
||||||
assert len(process_list) == num_workers
|
assert len(process_list) == num_workers
|
||||||
|
|
Loading…
Reference in New Issue
Block a user