From 516ff4e581519e635ee9c3a7c4301b280ff9cda8 Mon Sep 17 00:00:00 2001 From: Matthew Jackson <1085847+MattJackson@users.noreply.github.com> Date: Wed, 1 Jul 2026 13:55:20 -0700 Subject: [PATCH] test: widen profile_03 efficiency guard for tier-2 roster The tier-2 marginal specialists now additionally probe permanently-bad residual sectors before leaving them NonTrimmed, so the alternating-bad profile's finite read count rose past the old tier-0/1 bound. Guard still catches runaway; behavior asserts unchanged. --- tests/passn_handler_ab.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/passn_handler_ab.rs b/tests/passn_handler_ab.rs index be03194..49f5b5a 100644 --- a/tests/passn_handler_ab.rs +++ b/tests/passn_handler_ab.rs @@ -467,9 +467,13 @@ fn profile_03_alternating_good_bad() { "03_alternating expected NonTrimmed remainder, got bytes_pending=0" ); assert!(!pr.halted, "03_alternating halted"); + // Efficiency guard (catches runaway, not the tier-2 roster). The 8 + // permanently-bad sectors are now additionally probed by the tier-2 + // marginal specialists (SlowSpin/FuaRetry/SlowFua/CachePrime/Oscillate/ + // SpeedSweep) before being left NonTrimmed — bounded, finite extra reads. assert!( - trace_len <= 120, - "03_alternating trace_len={trace_len} exceeds 120" + trace_len <= 220, + "03_alternating trace_len={trace_len} exceeds 220" ); }