Skip to content

Commit 81f16a9

Browse files
shaohui-liu2000targos
authored andcommitted
test: add env to failure message
PR-URL: #15816 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 26ca2ae commit 81f16a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-child-process-default-options.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ child.stdout.on('data', function(chunk) {
4545

4646
process.on('exit', function() {
4747
assert.ok(response.includes('HELLO=WORLD'),
48-
'spawn did not use process.env as default');
48+
'spawn did not use process.env as default' +
49+
`(process.env.HELLO = ${process.env.HELLO})`);
4950
});

0 commit comments

Comments
 (0)