Skip to content

Commit

Permalink
throttle: make tolerance <= to reduce flakes
Browse files Browse the repository at this point in the history
We're fine with being that close

refs: #297
  • Loading branch information
wez committed Nov 19, 2024
1 parent 6a0f905 commit a827e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/throttle/src/throttle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ mod test {
println!("max_rate: {max_rate:?}");

assert!(
diff < tolerance,
diff <= tolerance,
"throttled after {throttled_iter} iterations for \
limit {limit}. diff={diff} is not within tolerance {tolerance}"
);
Expand Down

0 comments on commit a827e98

Please sign in to comment.