Skip to content

Commit 1f94674

Browse files
test cleanup
1 parent 3f761e9 commit 1f94674

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/integrations/litellm/test_litellm.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ async def __call__(self, *args, **kwargs):
3535

3636
from concurrent.futures import ThreadPoolExecutor
3737

38-
import litellm.litellm_core_utils.streaming_handler as streaming_handler
38+
import litellm.utils as litellm_utils
39+
from litellm.litellm_core_utils import streaming_handler
40+
from litellm.litellm_core_utils import thread_pool_executor
3941

4042

4143
LITELLM_VERSION = package_version("litellm")
@@ -44,7 +46,9 @@ async def __call__(self, *args, **kwargs):
4446
@pytest.fixture()
4547
def reset_litellm_executor():
4648
yield
47-
streaming_handler.executor = ThreadPoolExecutor(max_workers=100)
49+
thread_pool_executor.executor = ThreadPoolExecutor(max_workers=100)
50+
litellm_utils.executor = thread_pool_executor.executor
51+
streaming_handler.executor = thread_pool_executor.executor
4852

4953

5054
@pytest.fixture

0 commit comments

Comments
 (0)