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(integration): hold the upstream until the disconnect is settled before reading its spend row (#47303)
yucheng-berri89a194bbd0fd
diff --git a/tests/integration/observability/test_guardrail_effects.py b/tests/integration/observability/test_guardrail_effects.pyindex b3481057b3b..086baac6ee5 100644--- a/tests/integration/observability/test_guardrail_effects.py+++ b/tests/integration/observability/test_guardrail_effects.py@@ -2836,9 +2836,9 @@ def test_client_disconnect_before_any_content_sends_no_response_scan(gateway: Gawith _disconnect_rig(gateway, tmp_path, shape="empty") as rig:try:_stream_and_close(rig, "/v1/chat/completions", _chat_body(rig, 0), "data: ")+ rows: Final = _post_call_statuses(rig, rig.model)finally:rig.gate.set()- rows: Final = _post_call_statuses(rig, rig.model)assert rig.scans.response_scans(rig.secret()) == (), rig.scans.seenassert len(rows) == 1 and "success" not in rows[0], rows