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 17, 2017
1 parent 66387d1 commit 50e226d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-cluster-master-kill.js
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 50e226d

Please sign in to comment.