diff --git a/test/parallel/test-worker-init-failure.js b/test/sequential/test-worker-init-failure.js similarity index 97% rename from test/parallel/test-worker-init-failure.js rename to test/sequential/test-worker-init-failure.js index ea9654200ecaf8..43bfbb91624e64 100644 --- a/test/parallel/test-worker-init-failure.js +++ b/test/sequential/test-worker-init-failure.js @@ -35,8 +35,7 @@ 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'); + assert.ok(e.code === 'ERR_WORKER_INIT_FAILED' || e.code === 'EMFILE' || e.code === 'ENOENT'); }); }