Skip to content

Commit

Permalink
calling .end() after running shuts down child procs doesn't fight fla…
Browse files Browse the repository at this point in the history
…ky child procs
  • Loading branch information
mceachen committed Mar 1, 2022
1 parent 80a329e commit a92b7dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BatchCluster.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ describe("BatchCluster", function () {
// This just warms up bc to make child procs:
const iterations =
maxProcs * (bc.options.maxTasksPerProcess + 1)
setFailratePct(25)
// we're making exact pid assertions below: don't fight
// flakiness.
setFailratePct(0)

const tasks = await Promise.all(runTasks(bc, iterations))
assertExpectedResults(tasks)
Expand Down

0 comments on commit a92b7dc

Please sign in to comment.