Skip to content

Commit

Permalink
test: remove error message checking in test-worker-init-failure
Browse files Browse the repository at this point in the history
Let the check for the error code suffice and don't check for a
particular string in the message.

PR-URL: #34727
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and BethGriggs committed Aug 20, 2020
1 parent aed8237 commit 9a79020
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/parallel/test-worker-init-failure.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ if (process.argv[2] === 'child') {
// (i.e. single cpu) `ulimit` may not lead to such an error.

worker.on('error', (e) => {
assert.match(e.message, /EMFILE/);
assert.ok(e.code === 'ERR_WORKER_INIT_FAILED' || e.code === 'EMFILE');
});
}
Expand Down

0 comments on commit 9a79020

Please sign in to comment.