mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-08 11:38:56 +00:00
throttle: increase tolerance in test cases
refs: https://github.com/KumoCorp/kumomta/issues/297
This commit is contained in:
@@ -337,7 +337,7 @@ mod test {
|
||||
|
||||
#[tokio::test]
|
||||
async fn basic_throttle_60_000() {
|
||||
test_big_limits(60_000, Some(100), 0.05, &*MEMORY).await;
|
||||
test_big_limits(60_000, Some(100), 0.1, &*MEMORY).await;
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@@ -345,7 +345,7 @@ mod test {
|
||||
// Note that the 5% tolerance here is the same as the basic_throttle_60_000
|
||||
// test case because the variance is due to timing issues with very small
|
||||
// time periods produced by the overally limit, rather than the burst.
|
||||
test_big_limits(60_000, Some(100), 0.05, &*MEMORY).await;
|
||||
test_big_limits(60_000, Some(100), 0.1, &*MEMORY).await;
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in New Issue
Block a user