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: nodejs#34727
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • 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
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.