Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyakovenko committed Jan 20, 2022
1 parent 1cbe5a7 commit 2fd2467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf/src/sigverify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ mod tests {
fn test_dedup_saturated() {
// generate packet vector
let filter = Deduper::new(1_000, 0);
assert_eq!(filter.saturated.load(Ordering::Relaxed), false);
assert!(!filter.saturated.load(Ordering::Relaxed));
for _ in 0..10 {
let mut batches =
to_packet_batches(&(0..1024).map(|_| test_tx()).collect::<Vec<_>>(), 128);
Expand All @@ -1381,7 +1381,7 @@ mod tests {
break;
}
}
assert_eq!(filter.saturated.load(Ordering::Relaxed), true);
assert!(filter.saturated.load(Ordering::Relaxed));
}
#[test]
fn test_dedup_false_positive() {
Expand Down

0 comments on commit 2fd2467

Please sign in to comment.