From 9a790203ed4b63ed180584910d790628d1107f4a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 11 Aug 2020 07:18:54 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/34727 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- test/parallel/test-worker-init-failure.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/parallel/test-worker-init-failure.js b/test/parallel/test-worker-init-failure.js index ea9654200ecaf8..aa5513b2f93057 100644 --- a/test/parallel/test-worker-init-failure.js +++ b/test/parallel/test-worker-init-failure.js @@ -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'); }); }