Skip to content

Commit

Permalink
feat: Make Dredd proof against nodejs/node#6456
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Oct 4, 2016
1 parent ca5a726 commit 2ac973f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/dredd
Expand Up @@ -2,6 +2,14 @@

var fs = require('fs');


// Ignore this block, it's pure magic, temporary fix
// for https://github.com/nodejs/node/issues/6456
[process.stdout, process.stderr].forEach(function (s) {
s && s.isTTY && s._handle && s._handle.setBlocking && s._handle.setBlocking(true);
});


var dir = process.env.COLLECT_COVERAGE ? 'src' : 'lib';
var DreddCommand = require('../' + dir + '/dredd-command');

Expand Down

0 comments on commit 2ac973f

Please sign in to comment.