From 1007b55183c496805c37003fa0645a29c523ce2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Kr=C3=BCger=20Svensson?= Date: Wed, 26 Apr 2023 14:10:21 -0600 Subject: [PATCH] tests: remove unused events --- tests/supervisors/test_signal.py | 2 -- 1 file changed, 2 deletions(-) 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