Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/parallel/test-cluster-setup-master-multiple.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
require('../common');
const assert = require('assert');
const cluster = require('cluster');
const debug = require('util').debuglog('test');

assert(cluster.isMaster);

Expand All @@ -36,7 +37,7 @@ const configs = [];

// Capture changes
cluster.on('setup', () => {
console.log('"setup" emitted', cluster.settings);
debug(`"setup" emitted ${JSON.stringify(cluster.settings)}`);
configs.push(cheapClone(cluster.settings));
});

Expand Down Expand Up @@ -65,5 +66,5 @@ execs.forEach((v, i) => {
// Cluster emits 'setup' asynchronously, so we must stay alive long
// enough for that to happen
setTimeout(() => {
console.log('cluster setup complete');
debug('cluster setup complete');
}, (execs.length + 1) * 100);