Judge the post-fencing abort test only on terminal shapes

The Pending post-fencing rows sat in a Fencing-phase transaction that is
refused for unrelated reasons, so the row could not say what it claimed.
Post-fencing rows now cover the recorded values a terminal abort carries.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-30 00:31:03 +02:00
commit 88ce30905f

View file

@ -9895,13 +9895,11 @@ mod tests {
error: "candidate died after the fence".into(),
recovery: TerminalRecovery::RestoreIncumbent,
});
if recorded == CleanupEvidence::Pending {
// A Pending cleanup is not terminal, so the completion above
// would already be refused; judge the shape without it.
post.completion = None;
post.phase = DeploymentPhase::Fencing;
// A Pending cleanup is not terminal, so this completed shape is
// only judged for the recorded values a terminal abort can carry.
if recorded != CleanupEvidence::Pending {
assert_eq!(post.validate().is_ok(), accepted, "post-fencing, {label}");
}
assert_eq!(post.validate().is_ok(), accepted, "post-fencing, {label}");
}
Ok(())
}