rustfmt the run-state publisher
This commit is contained in:
parent
1652959741
commit
07e237c789
1 changed files with 8 additions and 2 deletions
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue