fixed unit test

This commit is contained in:
Yun Xu 2018-01-15 15:15:08 -08:00
parent 6a61fce84e
commit 09d6452475
2 changed files with 0 additions and 3 deletions

View File

@ -549,8 +549,6 @@ def serve(host, port, request_handler, error_handler, before_start=None,
"""
if not run_async:
# create new event_loop after fork
asyncio.get_event_loop().close()
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

View File

@ -23,4 +23,3 @@ def test_multiprocessing():
app.run(HOST, app.test_port, workers=num_workers)
assert len(process_list) == num_workers