From b55bb97f46d776516a9f92c5d655df0ffa5f80c4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 00:43:29 +0200 Subject: [PATCH] B2 rework: the refused-preflight test drives the abort cleanup by steps The resume backoff, not the ceiling, spaces the cleanup retries after the abort is recorded; the test asserts the abort at once and then steps it out. Co-Authored-By: Claude Sonnet 5.5 --- src/control_plane.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/control_plane.rs b/src/control_plane.rs index 3d456db..f53c9b2 100644 --- a/src/control_plane.rs +++ b/src/control_plane.rs @@ -16798,11 +16798,17 @@ mod tests { // The refusal is an error of its own phase, before the fence: the // deployment fails now, and its error carries the reopen time. let id = routed.transaction()?.transaction_id; - for _ in 0..6 { - routed.world.engine.resume_one_transaction()?; + routed.world.engine.resume_one_transaction()?; + let abort = routed + .transaction()? + .pre_fencing_abort + .context("the refusal did not abort the deployment")?; + assert!(abort.error.contains(&format!("reopens at unix ms {reopens_at}")), "{}", abort.error); + for _ in 0..8 { if record_of(&routed.world, &id)?.completion.is_some() { break; } + routed.step()?; } let Some(TransactionCompletion::FailedBeforeFencing { error }) = record_of(&routed.world, &id)?.completion