Skip to content

Commit 21c0269

Browse files
committed
Chore: trivial fix
1 parent ec4d56c commit 21c0269

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/parallel.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,37 +240,37 @@ describe("[parallel]", () => {
240240
describe("should abort other tasks when a task finished, when --race option was specified:", () => {
241241
it("Node API", async () => {
242242
await nodeApi(["test-task:append1 a", "test-task:append2 b"], { parallel: true, race: true })
243-
await delay(1000)
243+
await delay(5000)
244244
assert(result() === "a" || result() === "ab" || result() === "ba")
245245
})
246246

247247
it("npm-run-all command (--race)", async () => {
248248
await runAll(["--race", "--parallel", "test-task:append1 a", "test-task:append2 b"])
249-
await delay(1000)
249+
await delay(5000)
250250
assert(result() === "a" || result() === "ab" || result() === "ba")
251251
})
252252

253253
it("npm-run-all command (-r)", async () => {
254254
await runAll(["-rp", "test-task:append1 a", "test-task:append2 b"])
255-
await delay(1000)
255+
await delay(5000)
256256
assert(result() === "a" || result() === "ab" || result() === "ba")
257257
})
258258

259259
it("run-p command (--race)", async () => {
260260
await runPar(["--race", "test-task:append1 a", "test-task:append2 b"])
261-
await delay(1000)
261+
await delay(5000)
262262
assert(result() === "a" || result() === "ab" || result() === "ba")
263263
})
264264

265265
it("run-p command (-r)", async () => {
266266
await runPar(["-r", "test-task:append1 a", "test-task:append2 b"])
267-
await delay(1000)
267+
await delay(5000)
268268
assert(result() === "a" || result() === "ab" || result() === "ba")
269269
})
270270

271271
it("run-p command (no -r)", async () => {
272272
await runPar(["test-task:append1 a", "test-task:append2 b"])
273-
await delay(1000)
273+
await delay(5000)
274274
assert(result() === "abb" || result() === "bab")
275275
})
276276
})

0 commit comments

Comments
 (0)