Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: cover EMFILE failures generically
  • Loading branch information
HarshithaKP committed Feb 26, 2020
commit 6a7f905382ea674dc0a29cf6819e186cf20bab63
4 changes: 2 additions & 2 deletions test/parallel/test-worker-init-failure.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ if (process.argv[2] === 'child') {
assert.strictEqual(result, 4);
});
worker.on('error', (e) => {
assert.match(e.message, /Worker initialization failure: EMFILE/);
assert.strictEqual(e.code, 'ERR_WORKER_INIT_FAILED');
assert.match(e.message, /EMFILE/);
assert.ok(e.code === 'ERR_WORKER_INIT_FAILED' || e.code === 'EMFILE');
});
}
Comment thread
addaleax marked this conversation as resolved.

Expand Down