Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,12 @@ mod tests {
// and a cycle that found missing records lands in the
// sweep event.
let src = include_str!("core.rs");
let flat = src.split_whitespace().collect::<Vec<_>>().join(" ");
assert!(flat.contains("run_closed_bound_checks( t, req_i64(req, \"closed_bound_limit\")"));
// Whitespace-insensitive: strip every whitespace character from
// both sides so the assertion pins the call's shape, not the
// formatter's line-breaking (the call sits on one line today and
// was multi-line when this test was written).
let squashed: String = src.chars().filter(|c| !c.is_whitespace()).collect();
assert!(squashed.contains("run_closed_bound_checks(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"));
Expand Down