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]

test(integration): keep scripted upstream connections open past the proxy's keepalive (#44695)

devin-ai-integration[bot]a45c6b8f6582
diff --git a/tests/integration/_support/upstream.py b/tests/integration/_support/upstream.py
index f2891dd22c9..054fd3f882b 100644
--- a/tests/integration/_support/upstream.py
+++ b/tests/integration/_support/upstream.py
@@ -593,7 +593,13 @@ def main() -> None:
parser: Final = argparse.ArgumentParser()
parser.add_argument("--port", type=int, default=8190)
arguments: Final = parser.parse_args()
- uvicorn.run(Provider().app(), host="127.0.0.1", port=cast(int, arguments.port), access_log=False)
+ uvicorn.run(
+ Provider().app(),
+ host="127.0.0.1",
+ port=cast(int, arguments.port),
+ access_log=False,
+ timeout_keep_alive=125,
+ )
if __name__ == "__main__":