Skip to content

Commit

Permalink
fix: Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer committed Sep 5, 2024
1 parent 6c87253 commit 83f7df2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions relay-quotas/src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ impl Default for GlobalRateLimit {

#[cfg(test)]
mod tests {
use std::collections::BTreeSet;
use std::time::Duration;

use super::*;
Expand Down Expand Up @@ -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()
);
}

Expand Down

0 comments on commit 83f7df2

Please sign in to comment.