From f993f3299112e12e42753df67ba62df2b56f7ecf Mon Sep 17 00:00:00 2001 From: Rob Skillington Date: Wed, 8 Jun 2022 11:29:16 -0400 Subject: [PATCH] Raise retry time and multiply on each subsequent retry --- src/dbnode/integration/graphite_find_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dbnode/integration/graphite_find_test.go b/src/dbnode/integration/graphite_find_test.go index 393caab752..e0620cff12 100644 --- a/src/dbnode/integration/graphite_find_test.go +++ b/src/dbnode/integration/graphite_find_test.go @@ -309,11 +309,11 @@ local: failure = &checkFailure{} err = fmt.Errorf("initial error") ) - for attempt := 0; (failure != nil || err != nil) && attempt < 2; attempt++ { + for attempt := 0; (failure != nil || err != nil) && attempt < 3; attempt++ { if attempt > 0 { // Retry transient errors (should add a strict mode for this test // avoid allowing transient errors too). - time.Sleep(5 * time.Millisecond) + time.Sleep(time.Duration(attempt) * 500 * time.Millisecond) } result, failure, err = verifyFindQueries(node, level) }