mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
make retry test less flaky 💚
This commit is contained in:
parent
f1a19450fe
commit
874ac69b1b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue