Skip to content

Commit b4d9e0d

Browse files
Trottaddaleax
authored andcommitted
test: remove error message checking in test-worker-init-failure
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]>
1 parent 9e1f8fc commit b4d9e0d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/parallel/test-worker-init-failure.js

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ if (process.argv[2] === 'child') {
3535
// (i.e. single cpu) `ulimit` may not lead to such an error.
3636

3737
worker.on('error', (e) => {
38-
assert.match(e.message, /EMFILE/);
3938
assert.ok(e.code === 'ERR_WORKER_INIT_FAILED' || e.code === 'EMFILE');
4039
});
4140
}

0 commit comments

Comments
 (0)