From b0ecb3170fa73fa288e140f55c3914b187b6c15e Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Thu, 15 Mar 2018 22:03:36 -0700 Subject: [PATCH] fix hang build --- tests/test_keep_alive_timeout.py | 1 - tests/test_multiprocessing.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_keep_alive_timeout.py b/tests/test_keep_alive_timeout.py index 494bf633..2a9e93a2 100644 --- a/tests/test_keep_alive_timeout.py +++ b/tests/test_keep_alive_timeout.py @@ -279,4 +279,3 @@ def test_keep_alive_server_timeout(): assert isinstance(exception, ValueError) assert "Connection reset" in exception.args[0] or \ "got a new connection" in exception.args[0] - diff --git a/tests/test_multiprocessing.py b/tests/test_multiprocessing.py index 8cc40e5d..8becfab1 100644 --- a/tests/test_multiprocessing.py +++ b/tests/test_multiprocessing.py @@ -19,7 +19,7 @@ def test_multiprocessing(): process.terminate() signal.signal(signal.SIGALRM, stop_on_alarm) - signal.alarm(1) app.run(HOST, PORT, workers=num_workers) + signal.alarm(1) assert len(process_list) == num_workers