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 May 21, 2024
1 parent b288fcc commit d439bce
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 @@ -432,14 +432,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 d439bce

Please sign in to comment.