Skip to content

Commit

Permalink
Raise retry time and multiply on each subsequent retry
Browse files Browse the repository at this point in the history
  • Loading branch information
robskillington committed Jun 8, 2022
1 parent 757fefb commit f993f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dbnode/integration/graphite_find_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f993f32

Please sign in to comment.