diff --git a/perf/src/sigverify.rs b/perf/src/sigverify.rs index af554060fcdcfb..adf11915c04862 100644 --- a/perf/src/sigverify.rs +++ b/perf/src/sigverify.rs @@ -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::>(), 128); @@ -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() {