Skip to content

Commit

Permalink
feat: set cpu used from all to all -1
Browse files Browse the repository at this point in the history
Fixes: #43837
  • Loading branch information
98lenvi committed Jul 18, 2022
1 parent 78b3697 commit 5ca8e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const noop = FunctionPrototype;
const isTestRunner = getOptionValue('--test');
const testOnlyFlag = !isTestRunner && getOptionValue('--test-only');
// TODO(cjihrig): Use uv_available_parallelism() once it lands.
const rootConcurrency = isTestRunner ? cpus().length : 1;
const rootConcurrency = isTestRunner ? cpus().length - 1 : 1;
const subTestConcurrency = getOptionValue('--test-concurrency');

function testTimeout(promise, timeout) {
Expand Down

0 comments on commit 5ca8e14

Please sign in to comment.