From 91fa0e1a617ff6aec4904dbe738b0769afc3e408 Mon Sep 17 00:00:00 2001 From: sagirk Date: Tue, 20 Nov 2018 13:31:06 +0530 Subject: [PATCH] test: wrap functions containing assertions inside a `common.mustCall` --- test/parallel/test-child-process-env.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}`)); -}); +}));