Repository navigation
Stop the throwing-read poll test from failing on a busy machine - #439
Merged
Merged
Conversation
The test's read yielded to the thread pool before it threw. On a busy pool the stepping clock could fire the read's own timeout first, so the poll reported 'no read completed' instead of the read's error. The read now fails at once, as upstream's async throw does. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWUdrjfarTEM4dmBbK6GaV
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWUdrjfarTEM4dmBbK6GaV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The test
Keeps_polling_through_a_throwing_read_and_reports_its_error_at_the_deadlinefailed now and then in CI. Its read awaitedTask.Yield()before it threw. When the thread pool was busy, the stepping clock moved on before that continuation ran. The read's own timeout fired first, and the poll said "no read completed" instead of showing the read's error. The read now fails at once, like upstream's async throw, so the test no longer depends on thread timing. The product code is correct.Accepts_an_asynchronous_readin the same file also awaitsTask.Yield()under the stepping clock and can flake the same way. I left it alone here.🤖 Generated with Claude Code
https://claude.ai/code/session_01KWUdrjfarTEM4dmBbK6GaV
Summary by CodeRabbit