diff --git a/test/parallel/test-child-process-env.js b/test/parallel/test-child-process-env.js index 1e398ff26afee9..90a2671c7fbc90 100644 --- a/test/parallel/test-child-process-env.js +++ b/test/parallel/test-child-process-env.js @@ -53,10 +53,10 @@ child.stdout.on('data', (chunk) => { response += chunk; }); -process.on('exit', () => { +process.on('exit', common.mustCall(() => { assert.ok(response.includes('HELLO=WORLD')); assert.ok(response.includes('FOO=BAR')); assert.ok(!response.includes('UNDEFINED=undefined')); assert.ok(response.includes('NULL=null')); assert.ok(response.includes(`EMPTY=${os.EOL}`)); -}); +}));