Skip to content

Commit 91fa0e1

Browse files
committed
test: wrap functions containing assertions inside a common.mustCall
1 parent 0767eba commit 91fa0e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-child-process-env.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ child.stdout.on('data', (chunk) => {
5353
response += chunk;
5454
});
5555

56-
process.on('exit', () => {
56+
process.on('exit', common.mustCall(() => {
5757
assert.ok(response.includes('HELLO=WORLD'));
5858
assert.ok(response.includes('FOO=BAR'));
5959
assert.ok(!response.includes('UNDEFINED=undefined'));
6060
assert.ok(response.includes('NULL=null'));
6161
assert.ok(response.includes(`EMPTY=${os.EOL}`));
62-
});
62+
}));

0 commit comments

Comments
 (0)