Skip to content

Commit

Permalink
default to buffered tests with jobs>1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 27, 2017
1 parent 939e44e commit 0dfe183
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/test.js
Expand Up @@ -116,7 +116,10 @@ Test.prototype.sub = function (Class, extra, caller) {
}

extra.indent = ' '
extra.buffered = ownOrEnv(extra, 'buffered', 'TAP_BUFFER', true)
if (this.jobs > 1 && process.env.TAP_BUFFER === undefined)
extra.buffered = ownOr(extra, 'buffered', true)
else
extra.buffered = ownOrEnv(extra, 'buffered', 'TAP_BUFFER', true)
extra.parent = this
extra.stack = stack.captureString(80, caller)
var t = new Class(extra)
Expand Down

0 comments on commit 0dfe183

Please sign in to comment.