Skip to content

Commit ff81da0

Browse files
committed
cluster: spawning multiple workers in test-inspect-support-for-node_options
Removed numCpus and hardcoded to spawn multiple workers in test-inspect-support-for-node_options. PR nodejs#19165 Fixes : nodejs#19026
1 parent eb8f567 commit ff81da0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-inspect-support-for-node_options.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
const common = require('../common');
33
const cluster = require('cluster');
44
const assert = require('assert');
5-
const numCPUs = require('os').cpus().length;
65

76
common.skipIfInspectorDisabled();
87

@@ -14,7 +13,7 @@ function checkForInspectSupport(flag) {
1413
process.env.NODE_OPTIONS = flag;
1514

1615
if (cluster.isMaster) {
17-
for (let i = 0; i < numCPUs; i++) {
16+
for (let i = 0; i < 2; i++) {
1817
cluster.fork();
1918
}
2019

0 commit comments

Comments
 (0)