Skip to content

Commit 7a53783

Browse files
d1b1evanlucas
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 6ea8768 commit 7a53783

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
@@ -81,7 +81,8 @@ if (cluster.isWorker) {
8181
process.once('exit', () => {
8282
assert.strictEqual(typeof pid, 'number',
8383
`got ${pid} instead of a worker pid`);
84-
assert.strictEqual(alive, false, 'worker was alive after master died');
84+
assert.strictEqual(alive, false,
85+
`worker was alive after master died (alive = ${alive})`);
8586
});
8687

8788
}

0 commit comments

Comments
 (0)