summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-default-options.js
diff options
context:
space:
mode:
authorshaohui.liu2000@gmail.com <shaohui.liu2000@gmail.com>2017-10-06 09:45:06 -0700
committerJames M Snell <jasnell@gmail.com>2017-10-13 12:58:41 -0700
commit28e6cab52e65e3d9cb672db6ea51193622f7883b (patch)
treedcf3348ee38db29019d7fbc2c7156e965f05bb4c /test/parallel/test-child-process-default-options.js
parent42dfde827b39f4298ee8491dedf588d103662dc9 (diff)
downloadandroid-node-v8-28e6cab52e65e3d9cb672db6ea51193622f7883b.tar.gz
android-node-v8-28e6cab52e65e3d9cb672db6ea51193622f7883b.tar.bz2
android-node-v8-28e6cab52e65e3d9cb672db6ea51193622f7883b.zip
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>
Diffstat (limited to 'test/parallel/test-child-process-default-options.js')
-rw-r--r--test/parallel/test-child-process-default-options.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-default-options.js b/test/parallel/test-child-process-default-options.js
index b09c2d316f..18a5dd5e48 100644
--- a/test/parallel/test-child-process-default-options.js
+++ b/test/parallel/test-child-process-default-options.js
@@ -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})`);
});