Skip to content

Commit

Permalink
Inherit bailout results from parent test
Browse files Browse the repository at this point in the history
Otherwise some tests that spawn children fail in -b mode
  • Loading branch information
isaacs committed Feb 18, 2017
1 parent 0aa4202 commit bdb1d80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/test.js
Expand Up @@ -120,6 +120,8 @@ Test.prototype.sub = function (Class, extra, caller) {
extra.buffered = ownOr(extra, 'buffered', true)
else
extra.buffered = ownOrEnv(extra, 'buffered', 'TAP_BUFFER', true)

extra.bail = ownOr(extra, 'bail', this.bail)
extra.parent = this
extra.stack = stack.captureString(80, caller)
var t = new Class(extra)
Expand Down

0 comments on commit bdb1d80

Please sign in to comment.