Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9a79020

Browse filesBrowse files
TrottBethGriggs
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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent aed8237 commit 9a79020
Copy full SHA for 9a79020

File tree

Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-worker-init-failure.js
-1Lines changed: 0 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.