mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
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>
This commit is contained in:
parent
dfec7c2605
commit
12d0145a8c
1 changed files with 1 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue