From a827e98d18a73759ee8c3310f2f406382f9b254f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 19 Nov 2024 12:52:49 -0700 Subject: [PATCH] throttle: make tolerance <= to reduce flakes We're fine with being that close refs: https://github.com/KumoCorp/kumomta/issues/297 --- crates/throttle/src/throttle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/throttle/src/throttle.rs b/crates/throttle/src/throttle.rs index 3d6724be2..0f0adb86a 100644 --- a/crates/throttle/src/throttle.rs +++ b/crates/throttle/src/throttle.rs @@ -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}" );