Skip to content

Commit

Permalink
Always start at least one worker process
Browse files Browse the repository at this point in the history
(Hopefully) fixes jestjs#87.
  • Loading branch information
sophiebits committed Jul 17, 2014
1 parent db003d5 commit cff1410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var DEFAULT_OPTIONS = {
* It's probably good to keep this at something close to the number of cores
* on the machine that's running the test.
*/
maxWorkers: os.cpus().length - 1,
maxWorkers: Math.max(os.cpus().length - 1, 1),

/**
* The path to the executable node binary.
Expand Down

0 comments on commit cff1410

Please sign in to comment.