test: add env to failure message

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
shaohui.liu2000@gmail.com 2017-10-06 09:45:06 -07:00 committed by James M Snell
parent 42dfde827b
commit 28e6cab52e

View File

@ -45,5 +45,6 @@ child.stdout.on('data', function(chunk) {
process.on('exit', function() {
assert.ok(response.includes('HELLO=WORLD'),
'spawn did not use process.env as default');
'spawn did not use process.env as default' +
`(process.env.HELLO = ${process.env.HELLO})`);
});