Repository navigation
test(app): wait for gated WAL index save instead of a fixed delay - #25796
Merged
Merged
Conversation
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.
What
app/test/unit/local_wal_live_custody_test.dart(#20376 case) waited a fixed 60 ms aftersync.stop()and then asserted the gated index save had started (saves == 1). On a loaded runner it had not: the Dart Far Timezones job on main failed withExpected: <1> Actual: <0>at line 228 (run 44525641068, sha b23049e). The next five main runs passed on the same code, so this is a timing flake, not a product regression.Fix
Test-only.
persistWalscompletes asaveEnteredcompleter when it is entered; the test awaits it (10 s timeout) before the existing pump and assertions. The "no ADVANCE before the index save" check still runs while the save is gated. No app code changes.Tested
TZ=Pacific/Kiritimati flutter test test/unit/local_wal_live_custody_test.dart(Flutter 3.44.5): 9/9 pass.scripts/pr-preflightrun locally.Failure-Class: none
Auto-generated from issue feedback by the mini issues-improver — tested and merged.
🤖 Generated with Claude Code