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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Trott committed Aug 14, 2020
1 parent a84716a commit 9861962
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 9861962

Please sign in to comment.