From 64afceea5fd334811ee21267b2077d9f5a6769cf Mon Sep 17 00:00:00 2001 From: Alessandro Caprarelli Date: Wed, 13 Oct 2021 17:58:27 +0200 Subject: [PATCH] changed the max and min timeout --- reqwest-retry/tests/all/retry.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reqwest-retry/tests/all/retry.rs b/reqwest-retry/tests/all/retry.rs index df0c964..a1b6bd5 100644 --- a/reqwest-retry/tests/all/retry.rs +++ b/reqwest-retry/tests/all/retry.rs @@ -198,8 +198,8 @@ async fn assert_retry_on_request_timeout() { .with(RetryTransientMiddleware::new_with_policy( ExponentialBackoff { max_n_retries: 3, - max_retry_interval: std::time::Duration::from_millis(30), - min_retry_interval: std::time::Duration::from_millis(100), + max_retry_interval: std::time::Duration::from_millis(100), + min_retry_interval: std::time::Duration::from_millis(30), backoff_exponent: 2, }, )) @@ -244,8 +244,8 @@ async fn assert_retry_on_incomplete_message() { .with(RetryTransientMiddleware::new_with_policy( ExponentialBackoff { max_n_retries: 3, - max_retry_interval: std::time::Duration::from_millis(30), - min_retry_interval: std::time::Duration::from_millis(100), + max_retry_interval: std::time::Duration::from_millis(100), + min_retry_interval: std::time::Duration::from_millis(30), backoff_exponent: 2, }, ))