From 88ce30905f7ca4a5016068b55b0abbe2479c8cb3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 00:31:03 +0200 Subject: [PATCH] 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 --- src/control_plane.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/control_plane.rs b/src/control_plane.rs index a009fa7..c72c878 100644 --- a/src/control_plane.rs +++ b/src/control_plane.rs @@ -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(()) }