From c97ffaa5ad0953cad0b9012ce5c17a42347c6667 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 24 Sep 2024 18:10:35 +0300 Subject: [PATCH] address/tests: Use >= for random ranges of scores Signed-off-by: Alexandru Vasile --- src/transport/manager/address.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/manager/address.rs b/src/transport/manager/address.rs index 2f4cbc8b..ff00bd17 100644 --- a/src/transport/manager/address.rs +++ b/src/transport/manager/address.rs @@ -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); @@ -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); } }