Skip to content

Commit

Permalink
fix: add type anotation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dufkan committed Sep 26, 2024
1 parent 3ebf111 commit 08583e1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/communicator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,13 @@ mod tests {
assert_eq!(communicator.round_received(), true);

for idx in 0..devices.len() {
assert_eq!(
communicator.get_messages(devices[idx].identifier()),
if active_indices.contains(&idx) {
vec![vec![]]
} else {
vec![]
}
);
let msgs = communicator.get_messages(devices[idx].identifier());
let expected: Vec<Vec<u8>> = if active_indices.contains(&idx) {
vec![vec![]]
} else {
vec![]
};
assert_eq!(msgs, expected);
}
communicator.relay();
for idx in 0..devices.len() {
Expand Down

0 comments on commit 08583e1

Please sign in to comment.