From 13ec2d3a0c19b4e0e73828a99ee434c35407e082 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Thu, 19 Jul 2018 21:02:22 +1000 Subject: [PATCH] Try patch for nodejs/node#6456 --- test/cli.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/cli.js b/test/cli.js index 3e1b0ff8f..3b3bd44c9 100644 --- a/test/cli.js +++ b/test/cli.js @@ -474,6 +474,11 @@ describe('cli', function() { // console.log(results.css.toString() === expectedCss); // }); + [bin.stdout, bin.stderr].forEach(function(s) { + s && s.isTTY && s._handle && s._handle.setBlocking && + s._handle.setBlocking(true); + }); + bin.stdout.on('data', function(data) { // console.log('stdout', data.toString()); result += data;