Skip to content

Commit a14b447

Browse files
pomerantsevMylesBorins
authored andcommitted
test: improve an error message
PR-URL: #15921 Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 27e0532 commit a14b447

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ if (cluster.isWorker) {
7979
}));
8080

8181
process.once('exit', () => {
82-
assert.strictEqual(typeof pid, 'number', 'did not get worker pid info');
82+
assert.strictEqual(typeof pid, 'number',
83+
`got ${pid} instead of a worker pid`);
8384
assert.strictEqual(alive, false, 'worker was alive after master died');
8485
});
8586

0 commit comments

Comments
 (0)