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.

Fixes: nodejs#33759
  • Loading branch information
Trott committed Aug 11, 2020
1 parent bbfb014 commit 5cf4c45
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 5cf4c45

Please sign in to comment.