diff --git a/tests/test_connector.py b/tests/test_connector.py index 934af481cad..2ef92ae0357 100644 --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -1459,7 +1459,7 @@ async def test_cleanup(key: Any) -> None: existing_handle = conn._cleanup_handle = mock.Mock() conn._cleanup() - await asyncio.sleep(0.3) # Mitigate race condition on slow systems + await asyncio.sleep(0.5) # Mitigate race condition on slow systems assert existing_handle.cancel.called assert conn._conns == {} assert conn._cleanup_handle is None