Repository navigation
test: fix race condition in test_sync_timeout - #4596
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4596 +/- ##
=======================================
Coverage 94.84% 94.84%
=======================================
Files 96 96
Lines 13997 13997
=======================================
Hits 13275 13275
Misses 722 722 🚀 New features to boost your workflow:
|
Assisted-by: ClaudeCode:claude-opus-5-5
Contributor
|
I removed the changelog fragment since this is an internal cleanup. the change looks good, thank you! |
d-v-b
approved these changes
Nov 6, 2026
d-v-b
enabled auto-merge (squash)
November 6, 2026 20:48
barlowa124
pushed a commit
to barlowa124/zarr-python
that referenced
this pull request
Dec 4, 2026
* test: fix race condition in test_sync_timeout * chore: add release notes for zarr-developers#4596 * chore: drop changelog fragment for test-only change Assisted-by: ClaudeCode:claude-opus-5-5 --------- Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com>
barlowa124
pushed a commit
to barlowa124/zarr-python
that referenced
this pull request
Dec 4, 2026
* test: fix race condition in test_sync_timeout * chore: add release notes for zarr-developers#4596 * chore: drop changelog fragment for test-only change --------- Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com>
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.
Fixes #4582.
nnApplies the threading.Event patch suggested by @glaziermag. The old test raced a 2ms timeout against a 20ms sleep, which failed on macOS CI runners when the thread was rescheduled. Now the coroutine stays unfinished until the test has seen the timeout.nnTesting:n- pytest tests/test_sync.py: 19 passedn- test_sync_timeout run 50x in a loop: no failures