@@ -240,37 +240,37 @@ describe("[parallel]", () => {
240
240
describe ( "should abort other tasks when a task finished, when --race option was specified:" , ( ) => {
241
241
it ( "Node API" , async ( ) => {
242
242
await nodeApi ( [ "test-task:append1 a" , "test-task:append2 b" ] , { parallel : true , race : true } )
243
- await delay ( 1000 )
243
+ await delay ( 5000 )
244
244
assert ( result ( ) === "a" || result ( ) === "ab" || result ( ) === "ba" )
245
245
} )
246
246
247
247
it ( "npm-run-all command (--race)" , async ( ) => {
248
248
await runAll ( [ "--race" , "--parallel" , "test-task:append1 a" , "test-task:append2 b" ] )
249
- await delay ( 1000 )
249
+ await delay ( 5000 )
250
250
assert ( result ( ) === "a" || result ( ) === "ab" || result ( ) === "ba" )
251
251
} )
252
252
253
253
it ( "npm-run-all command (-r)" , async ( ) => {
254
254
await runAll ( [ "-rp" , "test-task:append1 a" , "test-task:append2 b" ] )
255
- await delay ( 1000 )
255
+ await delay ( 5000 )
256
256
assert ( result ( ) === "a" || result ( ) === "ab" || result ( ) === "ba" )
257
257
} )
258
258
259
259
it ( "run-p command (--race)" , async ( ) => {
260
260
await runPar ( [ "--race" , "test-task:append1 a" , "test-task:append2 b" ] )
261
- await delay ( 1000 )
261
+ await delay ( 5000 )
262
262
assert ( result ( ) === "a" || result ( ) === "ab" || result ( ) === "ba" )
263
263
} )
264
264
265
265
it ( "run-p command (-r)" , async ( ) => {
266
266
await runPar ( [ "-r" , "test-task:append1 a" , "test-task:append2 b" ] )
267
- await delay ( 1000 )
267
+ await delay ( 5000 )
268
268
assert ( result ( ) === "a" || result ( ) === "ab" || result ( ) === "ba" )
269
269
} )
270
270
271
271
it ( "run-p command (no -r)" , async ( ) => {
272
272
await runPar ( [ "test-task:append1 a" , "test-task:append2 b" ] )
273
- await delay ( 1000 )
273
+ await delay ( 5000 )
274
274
assert ( result ( ) === "abb" || result ( ) === "bab" )
275
275
} )
276
276
} )
0 commit comments