[CI] Fix flaky test_streaming_response test (#20913)

Signed-off-by: NickLucche <nlucches@redhat.com>
This commit is contained in:
Nicolò Lucchesi
2025-07-15 05:15:15 +02:00
committed by GitHub
parent 37e2ecace2
commit 80305c1b24

View File

@ -154,7 +154,8 @@ async def test_streaming_response(winning_call):
file=winning_call,
language="en",
temperature=0.0,
extra_body=dict(stream=True))
extra_body=dict(stream=True),
timeout=30)
# Reconstruct from chunks and validate
async for chunk in res:
# just a chunk
@ -184,7 +185,8 @@ async def test_stream_options(winning_call):
temperature=0.0,
extra_body=dict(stream=True,
stream_include_usage=True,
stream_continuous_usage_stats=True))
stream_continuous_usage_stats=True),
timeout=30)
final = False
continuous = True
async for chunk in res: