From cee31a6891aa85575b3c29531606c066ace333a0 Mon Sep 17 00:00:00 2001 From: vvanglro Date: Tue, 13 Aug 2024 16:56:31 +0800 Subject: [PATCH] test(signal): add sleep to ensure shutdown completion (#2427) --- tests/supervisors/test_signal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/supervisors/test_signal.py b/tests/supervisors/test_signal.py index 74117d797..80578a59d 100644 --- a/tests/supervisors/test_signal.py +++ b/tests/supervisors/test_signal.py @@ -40,6 +40,7 @@ async def wait_app(scope, receive, send): # ensure httpx has processed the response and result is complete await req assert req.result().status_code == 200 + await asyncio.sleep(0.1) # ensure shutdown is complete @pytest.mark.anyio