Watch
0
0
Fork
You've already forked hyperhive
0

rustfmt the run-state publisher

This commit is contained in:
damocles 2026-11-15 16:16:13 +01:00 • committed by mara
commit 07e237c789

View file

@ -668,8 +668,14 @@ mod tests {
let mut beat = refresh(&mut runs, 160); let mut beat = refresh(&mut runs, 160);
beat.sort_by(|a, b| a.0.cmp(&b.0)); beat.sort_by(|a, b| a.0.cmp(&b.0));
assert_eq!(beat.len(), 2); assert_eq!(beat.len(), 2);
assert_eq!((beat[0].0.as_str(), beat[0].1.since, beat[0].1.ts), ("other", 130, 160)); assert_eq!(
assert_eq!((beat[1].0.as_str(), beat[1].1.since, beat[1].1.ts), ("scout", 100, 160)); (beat[0].0.as_str(), beat[0].1.since, beat[0].1.ts),
("other", 130, 160)
);
assert_eq!(
(beat[1].0.as_str(), beat[1].1.since, beat[1].1.ts),
("scout", 100, 160)
);
assert!(beat.iter().all(|(_, s)| s.state == RunState::Running)); assert!(beat.iter().all(|(_, s)| s.state == RunState::Running));
} }