Skip to content

Commit

Permalink
update test with higher weights
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Mar 25, 2024
1 parent 463d767 commit a063f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/src/rate_limiter/limiter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,8 @@ mod tests {
// after a full 1s, 100 requests are allowed again
time::advance(time::Duration::from_millis(500)).await;
for _ in 1..6 {
for _ in 0..100 {
assert!(limiter.check(endpoint.clone(), 1));
for _ in 0..50 {
assert!(limiter.check(endpoint.clone(), 2));
}
time::advance(time::Duration::from_millis(1000)).await;
}
Expand Down

0 comments on commit a063f8d

Please sign in to comment.