Skip to content

Commit d8fd28d

Browse files
committed
Fix type errors in promises tests
1 parent 829d0e9 commit d8fd28d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/registry/promises.test.mts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('promises module', () => {
100100
await new Promise(r => setTimeout(r, 20))
101101
concurrent--
102102
},
103-
{ chunkSize: 2, concurrency: 2 },
103+
{ chunkSize: 2 },
104104
)
105105
expect(maxConcurrent).toBeLessThanOrEqual(2)
106106
})
@@ -367,17 +367,17 @@ describe('promises module', () => {
367367
expect(attempts).toBe(3)
368368
})
369369

370-
it('should handle randomize option', async () => {
370+
it('should handle jitter option', async () => {
371371
let attempts = 0
372372
await expect(
373373
pRetry(
374374
async () => {
375375
attempts++
376-
throw new Error('randomize test')
376+
throw new Error('jitter test')
377377
},
378-
{ retries: 1, randomize: true, minTimeout: 1 },
378+
{ retries: 1, jitter: true, minTimeout: 1 },
379379
),
380-
).rejects.toThrow('randomize test')
380+
).rejects.toThrow('jitter test')
381381
expect(attempts).toBe(2)
382382
})
383383
})

0 commit comments

Comments
 (0)