File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments