Skip to content

Commit

Permalink
address/tests: Use >= for random ranges of scores
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <[email protected]>
  • Loading branch information
lexnv committed Sep 24, 2024
1 parent 5b88ea4 commit c97ffaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transport/manager/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ mod tests {
let record = store.addresses.get(&address).unwrap().clone();

if let Some(previous) = prev {
assert!(previous.score > record.score);
assert!(previous.score >= record.score);
}

prev = Some(record);
Expand Down Expand Up @@ -429,7 +429,7 @@ mod tests {
if prev.is_none() {
prev = Some(record);
} else {
assert!(prev.unwrap().score > record.score);
assert!(prev.unwrap().score >= record.score);
prev = Some(record);
}
}
Expand Down

0 comments on commit c97ffaa

Please sign in to comment.