Skip to content

Commit

Permalink
test: print child stderr in test-http-chunk-problem
Browse files Browse the repository at this point in the history
This helps with debugging test failures.

PR-URL: #27117
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
addaleax committed Apr 9, 2019
1 parent bf766c1 commit d141330
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/parallel/test-http-chunk-problem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d141330

Please sign in to comment.