fix hang build
This commit is contained in:
parent
fc8b5f378a
commit
b0ecb3170f
|
@ -279,4 +279,3 @@ def test_keep_alive_server_timeout():
|
||||||
assert isinstance(exception, ValueError)
|
assert isinstance(exception, ValueError)
|
||||||
assert "Connection reset" in exception.args[0] or \
|
assert "Connection reset" in exception.args[0] or \
|
||||||
"got a new connection" in exception.args[0]
|
"got a new connection" in exception.args[0]
|
||||||
|
|
||||||
|
|
|
@ -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(1)
|
|
||||||
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