Skip to content

Commit 32043a4

Browse files
fix sleep
1 parent a605f2f commit 32043a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/web/server/tests/unit/isolated/test_diagnostics_healthcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def expected_failure(request: web.Request):
119119

120120
@routes.get(r"/slow")
121121
async def blocking_slow(request: web.Request):
122-
time.sleep(SLOW_HANDLER_DELAY_SECS * 1.1)
122+
await asyncio.sleep(SLOW_HANDLER_DELAY_SECS * 1.1)
123123
return web.json_response({"data": True, "error": None})
124124

125125
@routes.get(r"/cancel")

0 commit comments

Comments
 (0)