diff --git a/tests/proxy/integration/test_http.py b/tests/proxy/integration/test_http.py index 9f44b5c..c9b6f22 100644 --- a/tests/proxy/integration/test_http.py +++ b/tests/proxy/integration/test_http.py @@ -41,9 +41,9 @@ class LLUDPIntegrationTests(BaseIntegrationTest): async def _pump_one_event(self): # If we don't yield then the new entry won't end up in the queue - await asyncio.sleep(0) + await asyncio.sleep(0.001) await self.http_event_manager.pump_proxy_event() - await asyncio.sleep(0) + await asyncio.sleep(0.001) async def test_http_flow_request(self): # mimic a request coming in from mitmproxy over the queue