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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
d1b1 authored and MylesBorins committed Nov 17, 2017
1 parent c3e6491 commit 3a3792b
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 @@ -81,7 +81,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 3a3792b

Please sign in to comment.