Skip to content

Assert persisted state and actual lifecycle recovery in tests - #31

Merged
jeregrine merged 1 commit into
mainfrom
test/assert-recovery-outcomes
Sep 15, 2026
Merged

jeregrine merged 1 commit into
mainfrom
test/assert-recovery-outcomes

Conversation

@jeregrine

Copy link
Copy Markdown
Member

Problem

Several sync and recovery cases pass without exercising their advertised behavior: sync checks only read process memory, a discovery failure case injects no failure, and an expiry case only asserts that stored data is a map.

Fix

Assert persisted state for call, cast, and info sync boundaries. Replace the ineffective expiry scenario with paired active/expired foreign-claim cases against a real supervisor, checking recovered state, ownership, and claim cleanup.

Remove redundant no-fault smoke cases and strengthen the existing injected discovery-crash regression to prove that the next cycle actually recovers a permanent server with its stored state.

Supporting information

This changes test scenarios and assertions only. The claim fixtures explicitly make the old owner orphaned and permanent, so claim expiry is the eligibility condition under examination.

@jeregrine
jeregrine force-pushed the test/assert-recovery-outcomes branch from 76a4e0e to a831848 Compare September 15, 2026 14:41
@jeregrine
jeregrine merged commit 805f4ab into main Sep 15, 2026
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