Skip to content

Commit

Permalink
cluster: spawning multiple workers in test-inspect-support-for-node_o…
Browse files Browse the repository at this point in the history
…ptions

Removed numCpus and hardcoded to spawn multiple workers in test-inspect-support-for-node_options.
PR nodejs#19165

Fixes : nodejs#19026
  • Loading branch information
sameer-coder committed Mar 16, 2018
1 parent eb8f567 commit ff81da0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-inspect-support-for-node_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
const common = require('../common');
const cluster = require('cluster');
const assert = require('assert');
const numCPUs = require('os').cpus().length;

common.skipIfInspectorDisabled();

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

if (cluster.isMaster) {
for (let i = 0; i < numCPUs; i++) {
for (let i = 0; i < 2; i++) {
cluster.fork();
}

Expand Down

0 comments on commit ff81da0

Please sign in to comment.