diff --git a/test/test.js b/test/test.js index 8ead412..338da76 100644 --- a/test/test.js +++ b/test/test.js @@ -67,6 +67,10 @@ const compileTest = function(test, cb) { return cb(err); }); + + testinst.stdout.on('data', function(d) { + process.stdout.write(d.toString('ascii')); + }); }); }; @@ -122,10 +126,6 @@ const runTest = function(test, args, cb) { return cb(false); } }); - - testinst.stdout.on('data', function(d) { - process.stdout.write(d.toString('ascii')); - }) } console.log('NOTICE: The first test may take awhile as it may compile Node.js');