Skip to content

Commit

Permalink
Fix TAP output handler for --suppress-pending option
Browse files Browse the repository at this point in the history
This fixes a bug in the TAP output handler causing busted to exit with
an error when the `--suppress-pending` command-line option is used.
  • Loading branch information
o-lim committed May 14, 2016
1 parent f344bf4 commit 4f1199a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions busted/outputHandlers/TAP.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ return function(options)

busted.subscribe({ 'suite', 'reset' }, handler.suiteReset)
busted.subscribe({ 'suite', 'end' }, handler.suiteEnd)
busted.subscribe({ 'test', 'start' }, handler.testStart)
busted.subscribe({ 'test', 'end' }, handler.testEnd)
busted.subscribe({ 'test', 'start' }, handler.testStart, { predicate = handler.cancelOnPending })
busted.subscribe({ 'test', 'end' }, handler.testEnd, { predicate = handler.cancelOnPending })
busted.subscribe({ 'error' }, handler.error)

return handler
Expand Down

0 comments on commit 4f1199a

Please sign in to comment.