changed the max and min timeout

This commit is contained in:
Alessandro Caprarelli 2021-10-13 17:58:27 +02:00
parent 0038e29c85
commit 64afceea5f

View file

@ -198,8 +198,8 @@ async fn assert_retry_on_request_timeout() {
.with(RetryTransientMiddleware::new_with_policy( .with(RetryTransientMiddleware::new_with_policy(
ExponentialBackoff { ExponentialBackoff {
max_n_retries: 3, max_n_retries: 3,
max_retry_interval: std::time::Duration::from_millis(30), max_retry_interval: std::time::Duration::from_millis(100),
min_retry_interval: std::time::Duration::from_millis(100), min_retry_interval: std::time::Duration::from_millis(30),
backoff_exponent: 2, backoff_exponent: 2,
}, },
)) ))
@ -244,8 +244,8 @@ async fn assert_retry_on_incomplete_message() {
.with(RetryTransientMiddleware::new_with_policy( .with(RetryTransientMiddleware::new_with_policy(
ExponentialBackoff { ExponentialBackoff {
max_n_retries: 3, max_n_retries: 3,
max_retry_interval: std::time::Duration::from_millis(30), max_retry_interval: std::time::Duration::from_millis(100),
min_retry_interval: std::time::Duration::from_millis(100), min_retry_interval: std::time::Duration::from_millis(30),
backoff_exponent: 2, backoff_exponent: 2,
}, },
)) ))