Skip to content

test: Verify chunk-at-a-time streaming deterministically - #3777

Merged
bdarnell merged 1 commit into
tornadoweb:masterfrom
bdarnell:claude/beautiful-fermi-dmc8wl
Oct 7, 2026
Merged

bdarnell merged 1 commit into
tornadoweb:masterfrom
bdarnell:claude/beautiful-fermi-dmc8wl

Conversation

@bdarnell

@bdarnell bdarnell commented Oct 7, 2026

Copy link
Copy Markdown
Member

test_chunked and test_header_callback relied on a 10ms sleep between chunks to get [b"asdf", b"qwer"] in the streaming callback. Now that chunks arriving together are coalesced, that was timing-dependent and failed on Windows. Instead, have ChunkHandler wait until the client's streaming_callback has received the first chunk before sending the second. A client that held data back would now fail the test instead of passing it.

Claude-Session: https://claude.ai/code/session_019XKZM6XMVNYGibRyDU6QZW

test_chunked and test_header_callback relied on a 10ms sleep between
chunks to get [b"asdf", b"qwer"] in the streaming callback. Now that
chunks arriving together are coalesced, that was timing-dependent and
failed on Windows. Instead, have ChunkHandler wait until the client's
streaming_callback has received the first chunk before sending the
second. A client that held data back would now fail the test instead of
passing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019XKZM6XMVNYGibRyDU6QZW
@bdarnell
bdarnell merged commit 2e5123c into tornadoweb:master Oct 7, 2026
17 checks passed
@bdarnell
bdarnell deleted the claude/beautiful-fermi-dmc8wl branch October 7, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants