From 12d0145a8c63d85773b3bbe1300297c0627c1634 Mon Sep 17 00:00:00 2001 From: yucheng Date: Sat, 26 Sep 2026 07:49:33 +0000 Subject: [PATCH] test(passthrough): build the relayed error tail without rebinding a Final Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../test_passthrough_upstream_error_visibility.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/integration/observability/test_passthrough_upstream_error_visibility.py b/tests/integration/observability/test_passthrough_upstream_error_visibility.py index 6872e81da82..02c93837d90 100644 --- a/tests/integration/observability/test_passthrough_upstream_error_visibility.py +++ b/tests/integration/observability/test_passthrough_upstream_error_visibility.py @@ -763,9 +763,7 @@ async def test_gemini_passthrough_async_streaming_429_first_frame_reaches_client first: Final = await iterator.__anext__() assert first.startswith(b'data: {"error":"rate limited"}'), first gate.set() - rest: Final = b"" - async for chunk in iterator: - rest += chunk + rest: Final = b"".join([chunk async for chunk in iterator]) assert first + rest == b"".join(frames), first + rest finally: gate.set()