From 7eb84f767586d53bf721a0dc0fd4e11e327d21e3 Mon Sep 17 00:00:00 2001 From: hashmap Date: Tue, 16 Oct 2018 19:43:27 +0200 Subject: [PATCH] Add sleep before retry --- api/tests/rest.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/api/tests/rest.rs b/api/tests/rest.rs index 398b825ec..e6e564819 100644 --- a/api/tests/rest.rs +++ b/api/tests/rest.rs @@ -111,5 +111,6 @@ fn request_with_retry(url: &str) -> Result, api::Error> { return res; } tries += 1; + thread::sleep(time::Duration::from_millis(500)); } }