From 67aa5e6bcdc569c22a3d5a10e89cde17ea5e4daf Mon Sep 17 00:00:00 2001 From: Salad Dais Date: Wed, 19 May 2021 22:26:18 +0000 Subject: [PATCH] Possibly fix for flakey tests --- tests/proxy/integration/test_http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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