From e819c5f4485e1e1a2be0049f81231314694f4c36 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 05:52:07 -0600 Subject: [PATCH] test(fleet-queue): make closed-bound sweep wiring assert call pieces, not spacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 5a70b6bdb97 (style(treefmt): auto-format on main) collapsed the multi-line run_closed_bound_checks call in turso_queue/core.rs onto one line, so the flattened-source assertion at closed_bound.rs:822 — which expected 'run_closed_bound_checks( t, ...' with a space — went stale and failed main CI fleet-smoke (run 45157413086, issue #13221). The wiring itself is intact: the detective still rides the sweep with its own closed_bound_limit key, opt-out closed_bound flag defaulting on, and its summary under out["closed_bound"]. This asserts the call pieces (function name, then 't, req_i64(req, "closed_bound_limit")') so treefmt can lay the call out on one line or many without breaking the test. Fixes #13221 --- .../crates/fleet-queue/src/turso_queue/closed_bound.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs b/pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs index 26b85cc7bb..89da05cfc1 100644 --- a/pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs +++ b/pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs @@ -819,7 +819,11 @@ mod tests { // sweep event. let src = include_str!("core.rs"); let flat = src.split_whitespace().collect::>().join(" "); - assert!(flat.contains("run_closed_bound_checks( t, req_i64(req, \"closed_bound_limit\")")); + // treefmt may lay the call out on one line or many (#13221: + // 5a70b6bdb97 collapsed it), so assert the pieces, not the + // spacing between "(" and "t". + assert!(flat.contains("run_closed_bound_checks(")); + assert!(flat.contains("t, req_i64(req, \"closed_bound_limit\")")); assert!(src.contains("req_bool(req, \"closed_bound\")")); assert!(src.contains("out[\"closed_bound\"]")); assert!(src.contains("closed_bound_missing > 0"));