Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fixing flaky tests

yuneng-jiangfbe5ae9e1741
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.asyncio
async def test_call_router_callbacks_on_failure():
router = Router(