From d1413305e024ed1da97a10804f63c3de21218c2d Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 6 Apr 2019 23:30:38 +0200 Subject: [PATCH] test: print child stderr in test-http-chunk-problem This helps with debugging test failures. PR-URL: https://github.com/nodejs/node/pull/27117 Reviewed-By: Colin Ihrig Reviewed-By: Beth Griggs Reviewed-By: Yongsheng Zhang Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- test/parallel/test-http-chunk-problem.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-http-chunk-problem.js b/test/parallel/test-http-chunk-problem.js index 4a2886da3f8e40..ebfd940687947e 100644 --- a/test/parallel/test-http-chunk-problem.js +++ b/test/parallel/test-http-chunk-problem.js @@ -52,6 +52,9 @@ function executeRequest(cb) { `"${__filename}"`, 'shasum' ].join(' '), (err, stdout, stderr) => { + if (stderr.trim() !== '') { + console.log(stderr); + } assert.ifError(err); assert.strictEqual(stdout.slice(0, 40), '8c206a1a87599f532ce68675536f0b1546900d7a');