From 7ce27ddda357a7058dc64e03e06146aeba8d930a Mon Sep 17 00:00:00 2001 From: Giles Odigwe Date: Thu, 30 Apr 2026 08:42:08 -0700 Subject: [PATCH] Increase reliable streaming test timeouts from 30s to 60s The LLM call through Azure OpenAI + Redis streaming pipeline can exceed 30s in CI due to cold starts or throttling. Raise to 60s to reduce flaky timeouts while still bounded by pytest's 120s per-test limit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../tests/integration_tests/test_03_reliable_streaming.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/packages/azurefunctions/tests/integration_tests/test_03_reliable_streaming.py b/python/packages/azurefunctions/tests/integration_tests/test_03_reliable_streaming.py index c99198b602..b8c64263cb 100644 --- a/python/packages/azurefunctions/tests/integration_tests/test_03_reliable_streaming.py +++ b/python/packages/azurefunctions/tests/integration_tests/test_03_reliable_streaming.py @@ -55,12 +55,11 @@ class TestSampleReliableStreaming: # Wait a moment for the agent to start writing to Redis time.sleep(2) - # Stream response from Redis with shorter timeout - # Note: We use text/plain to avoid SSE parsing complexity + # Stream response from Redis with longer timeout to account for LLM latency stream_response = requests.get( f"{self.stream_url}/{thread_id}", headers={"Accept": "text/plain"}, - timeout=30, # Shorter timeout for test + timeout=60, ) assert stream_response.status_code == 200 @@ -82,7 +81,7 @@ class TestSampleReliableStreaming: stream_response = requests.get( f"{self.stream_url}/{thread_id}", headers={"Accept": "text/event-stream"}, - timeout=30, # Shorter timeout + timeout=60, ) assert stream_response.status_code == 200 content_type = stream_response.headers.get("content-type", "")