Skip to content

Commit 090cc97

Browse files
d1b1MylesBorins
authored andcommitted
test: improve template value for test message
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>
1 parent 1d3793e commit 090cc97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-cluster-master-kill.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ if (cluster.isWorker) {
6060
process.once('exit', () => {
6161
assert.strictEqual(typeof pid, 'number',
6262
`got ${pid} instead of a worker pid`);
63-
assert.strictEqual(alive, false, 'worker was alive after master died');
63+
assert.strictEqual(alive, false,
64+
`worker was alive after master died (alive = ${alive})`);
6465
});
6566

6667
}

0 commit comments

Comments
 (0)