fixed unit test
This commit is contained in:
parent
6a61fce84e
commit
09d6452475
|
@ -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)
|
||||
|
||||
|
|
|
@ -23,4 +23,3 @@ def test_multiprocessing():
|
|||
app.run(HOST, app.test_port, workers=num_workers)
|
||||
|
||||
assert len(process_list) == num_workers
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user