FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: improve an error message · nodejs/node@a14b447 · GitHub

/ node Public

Commit a14b447

Browse files
authored andcommitted
test: improve an error message
PR-URL: #15921 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 27e0532 commit a14b447

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL