diff --git a/test/parallel/test-fs-readfile-error.js b/test/parallel/test-fs-readfile-error.js index 719c0061c4e39e..3b245058ff6f38 100644 --- a/test/parallel/test-fs-readfile-error.js +++ b/test/parallel/test-fs-readfile-error.js @@ -38,12 +38,12 @@ function test(env, cb) { const filename = fixtures.path('test-fs-readfile-error.js'); const execPath = `"${process.execPath}" "${filename}"`; const options = { env: Object.assign({}, process.env, env) }; - exec(execPath, options, common.mustCall((err, stdout, stderr) => { + exec(execPath, options, (err, stdout, stderr) => { assert(err); assert.strictEqual(stdout, ''); assert.notStrictEqual(stderr, ''); cb(String(stderr)); - })); + }); } test({ NODE_DEBUG: '' }, common.mustCall((data) => {