From fbe5ae9e17410abdce919184e87711873f69eb6a Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Fri, 23 Jan 2026 12:20:27 -0800 Subject: [PATCH] fixing flaky tests --- .circleci/config.yml | 1 + tests/local_testing/test_router_utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 168e12a56b5..0b369477c28 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -542,6 +542,7 @@ jobs: --cov=litellm \ --cov-report=xml \ -n 4 \ + --dist=loadscope \ --junitxml=test-results/junit.xml \ --durations=5 \ -vv" diff --git a/tests/local_testing/test_router_utils.py b/tests/local_testing/test_router_utils.py index 55b1893c072..7ade0777093 100644 --- a/tests/local_testing/test_router_utils.py +++ b/tests/local_testing/test_router_utils.py @@ -265,7 +265,7 @@ async def test_call_router_callbacks_on_success(): ) assert increment["increment_value"] == 1 - +@pytest.mark.serial @pytest.mark.asyncio async def test_call_router_callbacks_on_failure(): router = Router(