From b5d13652e10cf5eda6a324043a91d51d8481a799 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 23 Oct 2026 04:50:09 +0200 Subject: [PATCH] idunn-launch tests: the first Active probe is also held to the refresh cadence Co-Authored-By: Claude Sonnet 5.5 --- src/launcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/launcher.rs b/src/launcher.rs index 62a04b1..b2a17be 100644 --- a/src/launcher.rs +++ b/src/launcher.rs @@ -2415,9 +2415,9 @@ mod tests { stop.store(true, Ordering::SeqCst); assert_eq!(join_within(Duration::from_secs(10), unit), Outcome::Stopped); let at = seen.at.lock().unwrap().clone(); - // The first probe ends startup; the rest follow the refresh cadence. + // The first probe ends startup; every later one follows the cadence. let cadence = HEALTH_REFRESH.as_millis() as u64..=HEALTH_REFRESH.as_millis() as u64 + POLL.as_millis() as u64; - for pair in at[1..].windows(2) { + for pair in at.windows(2) { assert!(cadence.contains(&(pair[1] - pair[0])), "probes at {at:?}"); } }