From 3bb49447bc73dc179abb317b18d640e2d55b2486 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Sat, 6 Jan 2024 12:30:43 +0530 Subject: [PATCH] (ci/cd) fix event loop bug proxy_test --- litellm/tests/test_proxy_server_keys.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/litellm/tests/test_proxy_server_keys.py b/litellm/tests/test_proxy_server_keys.py index 98bb3c3a69..7fad89e68d 100644 --- a/litellm/tests/test_proxy_server_keys.py +++ b/litellm/tests/test_proxy_server_keys.py @@ -58,18 +58,18 @@ save_worker_config( import asyncio -@pytest.fixture -def event_loop(): - """Create an instance of the default event loop for each test case.""" - policy = asyncio.WindowsSelectorEventLoopPolicy() - res = policy.new_event_loop() - asyncio.set_event_loop(res) - res._close = res.close - res.close = lambda: None +# @pytest.fixture +# def event_loop(): +# """Create an instance of the default event loop for each test case.""" +# policy = asyncio.WindowsSelectorEventLoopPolicy() +# res = policy.new_event_loop() +# asyncio.set_event_loop(res) +# res._close = res.close +# res.close = lambda: None - yield res +# yield res - res._close() +# res._close() # Here you create a fixture that will be used by your tests