From 83f7df2d5132f0151dbc06cf2ddc79c00caa2088 Mon Sep 17 00:00:00 2001 From: Jan Michael Auer Date: Thu, 5 Sep 2024 10:57:33 +0200 Subject: [PATCH] fix: Test --- relay-quotas/src/global.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relay-quotas/src/global.rs b/relay-quotas/src/global.rs index 5925baa935..e5a3ea0090 100644 --- a/relay-quotas/src/global.rs +++ b/relay-quotas/src/global.rs @@ -245,6 +245,7 @@ impl Default for GlobalRateLimit { #[cfg(test)] mod tests { + use std::collections::BTreeSet; use std::time::Duration; use super::*; @@ -314,13 +315,12 @@ mod tests { .unwrap(); // Only the quotas that are less than the quantity gets ratelimited. - assert_eq!(rate_limited_quotas.len(), 2); assert_eq!( - vec![100, 150], + BTreeSet::from([100, 150]), rate_limited_quotas .iter() .map(|quota| quota.limit()) - .collect_vec(), + .collect() ); }