Skip to content

Commit

Permalink
Remove unused events (#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKs committed Apr 27, 2023
1 parent 913afe1 commit 4d302a9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/supervisors/test_signal.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d302a9

Please sign in to comment.