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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test_long_term_spend_accuracy_with_bursts
Ishaan Jaff9951b356da8a
diff --git a/tests/spend_tracking_tests/test_spend_accuracy_tests.py b/tests/spend_tracking_tests/test_spend_accuracy_tests.pyindex d60bc985a6c..93228c2d06a 100644--- a/tests/spend_tracking_tests/test_spend_accuracy_tests.py+++ b/tests/spend_tracking_tests/test_spend_accuracy_tests.py@@ -156,7 +156,7 @@ async def test_basic_spend_accuracy():response = await chat_completion(session, key)print("response: ", response)- # wait 10 seconds for spend to be updated+ # wait 15 seconds for spend to be updatedawait asyncio.sleep(15)# Get spend information for each entity@@ -235,7 +235,7 @@ async def test_long_term_spend_accuracy_with_bursts():print(f"Burst 1 - Request {i+1}/{BURST_1_REQUESTS} completed")# Wait for spend to be updated- await asyncio.sleep(8)+ await asyncio.sleep(15)# Check intermediate spendintermediate_key_info = await get_spend_info(session, "key", key)@@ -248,7 +248,7 @@ async def test_long_term_spend_accuracy_with_bursts():print(f"Burst 2 - Request {i+1}/{BURST_2_REQUESTS} completed")# Wait for spend to be updated- await asyncio.sleep(8)+ await asyncio.sleep(15)# Get final spend information for each entitykey_info = await get_spend_info(session, "key", key)