idunn-launch tests: the first Active probe is also held to the refresh cadence

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-23 04:50:09 +02:00
commit b5d13652e1

View file

@ -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:?}");
}
}