test: improve deterministic unit test coverage

This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-06-04 19:41:32 +08:00
1 parent 87bd56468c
commit 24e56fcf07
27 files changed
+279 -213

No files matched your search

+1 -1
View File
@@ -233,7 +233,7 @@ async def test_stream_segment_end_does_not_close_sse(aiohttp_client) -> None:
assert on_stream_end is not None
await on_stream("planning")
await on_stream_end(resuming=True)
await asyncio.sleep(0.05)
await asyncio.sleep(0)
await on_stream(" final")
await on_stream_end(resuming=False)
return "planning final"