fix hang build

This commit is contained in:
Yun Xu 2018-03-15 22:03:36 -07:00
parent fc8b5f378a
commit b0ecb3170f
2 changed files with 1 additions and 2 deletions

View File

@ -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]

View File

@ -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