Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 14, 2024
1 parent d2cec59 commit 54af838
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions backend/src/throttle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,18 +235,5 @@ mod tests {

// Should allow more requests
assert_eq!(manager.check_throttle().await, None);

// Add more requests to hit per-minute limit
for _ in 0..5 {
manager.increment_counters().await;
}

// Should throttle after hitting per-minute limit
let throttle_result = manager.check_throttle().await;
assert!(throttle_result.is_some());
assert_eq!(
throttle_result.unwrap().limit_type,
ThrottleLimit::PerMinute
);
}
}

0 comments on commit 54af838

Please sign in to comment.