Skip to content

test: wait for live status to settle after reconnect - #129

Merged
sandersonstabo merged 1 commit into
masterfrom
test/live-status-settle
Oct 19, 2026
Merged

sandersonstabo merged 1 commit into
masterfrom
test/live-status-settle

Conversation

@sandersonstabo

@sandersonstabo sandersonstabo commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The 5.0.1 candidate dry-run (run 39236003027) failed live-ssr-sharing-update-and-reconnect in the new development lane. SER reported Connecting while native reported Open.

Live.status samples its resource every 250 ms. Native reads resource.connected straight from the template. So after a reconnect, SER's status can trail the first new value by up to one sample. The scenario already waits for Open before its initial reads. It now does the same before the final read after the reconnect. Both targets must still reach the same status.

Verification

  • Live queries scenario with --repeat-each 5: passes in development and production.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes the live reconnect test so it waits for both targets to report Open status after reconnect before asserting the final state. Live.status samples its resource every 250 ms, so after reconnecting, the status can trail the first new value by up to one sample. The test now waits for Open on both left and right clients before the final reads, aligning with the initial wait and preventing flaky failures when SER still reports Connecting.

Written for commit 85c5add. Summary will update on new commits.

View guided diff Turn on auto-fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sandersonstabo
sandersonstabo merged commit c11f095 into master Oct 19, 2026
28 checks passed
@sandersonstabo
sandersonstabo deleted the test/live-status-settle branch October 19, 2026 10:25
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.

1 participant