From 2151a80f05d0148a10406234762e07e17c4c2341 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 19 Feb 2024 08:24:47 -0600 Subject: [PATCH] remove some duplicate sleeps --- tests/test_connector.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_connector.py b/tests/test_connector.py index 81f07e2d68d..e1f23f15c26 100644 --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -1212,8 +1212,7 @@ async def test_tcp_connector_dns_tracing_throttle_requests( m_resolver().resolve.return_value = dns_response() loop.create_task(conn._resolve_host("localhost", 8080, traces=traces)) loop.create_task(conn._resolve_host("localhost", 8080, traces=traces)) - await asyncio.sleep(0) - await asyncio.sleep(0) + await asyncio.sleep(0.1) on_dns_cache_hit.assert_called_once_with( session, trace_config_ctx, aiohttp.TraceDnsCacheHitParams("localhost") )