From 5cf4c45138f72de34fb7234a8e43e9a9f1e1a173 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. Fixes: https://github.com/nodejs/node/issues/33759 --- 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'); }); }