Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Change indentation for concatenation for assert message
  • Loading branch information
Jean-Baptiste Brossard committed Oct 8, 2017
commit b31652dd9c6146794872da2d0e879f2a18b62700
12 changes: 7 additions & 5 deletions test/parallel/test-cluster-setup-master.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ if (cluster.isWorker) {

// Check all values
process.once('exit', function() {
const argsMsg = `The arguments was not send for one or more worker.
There was ${correctInput} worker that receive
argument, ${totalWorkers} were expected`;
const argsMsg = 'Arguments was not send for one or more worker. ' +
`${correctInput} workers receive argument, ` +
`but ${totalWorkers} were expected.`;
assert.ok(checks.args, argsMsg);

assert.ok(checks.setupEvent, 'The setup event was never emitted');
const settingObjectMsg = `The settingsObject do not have correct
properties : ${JSON.stringify(settings)}`;

const settingObjectMsg = 'The settingsObject do not have correct ' +
`properties : ${JSON.stringify(settings)}`;
assert.ok(checks.settingsObject, settingObjectMsg);
});

Expand Down