Skip to content

Commit

Permalink
test: improve template value for test message
Browse files Browse the repository at this point in the history
Include value that cause failure in error message in
test-cluster-master-kill.js.

PR-URL: #16826
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
d1b1 authored and MylesBorins committed Nov 28, 2017
1 parent 1d3793e commit 090cc97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-cluster-master-kill.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ if (cluster.isWorker) {
process.once('exit', () => {
assert.strictEqual(typeof pid, 'number',
`got ${pid} instead of a worker pid`);
assert.strictEqual(alive, false, 'worker was alive after master died');
assert.strictEqual(alive, false,
`worker was alive after master died (alive = ${alive})`);
});

}

0 comments on commit 090cc97

Please sign in to comment.