Skip to content

Commit

Permalink
make retry test less flaky 💚
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed May 20, 2021
1 parent f1a1945 commit 874ac69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/retry.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tap.test('withRetrying works', (t) => {
.catch(t.ifError)

setTimeout(() => t.equal(calls, 1), 50) // buffer
setTimeout(() => t.equal(calls, 2), 150) // 100 + buffer
setTimeout(() => t.equal(calls, 3), 350) // 100 + 200 + buffer
setTimeout(() => t.equal(calls, 4), 750) // 100 + 200 + 400 + buffer
setTimeout(() => t.equal(calls, 2), 200) // 100 + buffer
setTimeout(() => t.equal(calls, 3), 450) // 100 + 200 + buffer
setTimeout(() => t.equal(calls, 4), 900) // 100 + 200 + 400 + buffer
})

0 comments on commit 874ac69

Please sign in to comment.