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:
parent
61842a3952
commit
88ce30905f
1 changed files with 4 additions and 6 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue