From 28e6cab52e65e3d9cb672db6ea51193622f7883b Mon Sep 17 00:00:00 2001 From: "shaohui.liu2000@gmail.com" Date: Fri, 6 Oct 2017 09:45:06 -0700 Subject: [PATCH] test: add env to failure message PR-URL: https://github.com/nodejs/node/pull/15816 Reviewed-By: Joyee Cheung Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-child-process-default-options.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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})`); });