Skip to content

Commit 5ca8e14

Browse files
committed
feat: set cpu used from all to all -1
Fixes: #43837
1 parent 78b3697 commit 5ca8e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/test_runner/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const noop = FunctionPrototype;
4343
const isTestRunner = getOptionValue('--test');
4444
const testOnlyFlag = !isTestRunner && getOptionValue('--test-only');
4545
// TODO(cjihrig): Use uv_available_parallelism() once it lands.
46-
const rootConcurrency = isTestRunner ? cpus().length : 1;
46+
const rootConcurrency = isTestRunner ? cpus().length - 1 : 1;
4747
const subTestConcurrency = getOptionValue('--test-concurrency');
4848

4949
function testTimeout(promise, timeout) {

0 commit comments

Comments
 (0)