diff --git a/tests/supervisors/test_signal.py b/tests/supervisors/test_signal.py index 2288f0fa3..824b42e40 100644 --- a/tests/supervisors/test_signal.py +++ b/tests/supervisors/test_signal.py @@ -35,7 +35,6 @@ async def wait_app(scope, receive, send): server: Server async with run_server(config) as server: async with httpx.AsyncClient() as client: - Event() req = asyncio.create_task(client.get(f"http://127.0.0.1:{unused_tcp_port}")) await asyncio.sleep(0.1) # ensure next tick server.handle_exit(sig=signal.SIGINT, frame=None) # exit @@ -69,7 +68,6 @@ async def forever_app(scope, receive, send): server: Server async with run_server(config) as server: async with httpx.AsyncClient() as client: - Event() req = asyncio.create_task(client.get(f"http://127.0.0.1:{unused_tcp_port}")) await asyncio.sleep(0.1) # next tick # trigger exit, this request should time out in ~1 sec