Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Fix TAP writer skip status. (#26)
Browse files Browse the repository at this point in the history
Reset the TAP writer skips when we start a new document. If a test
document was skipped, the skip state was being leaked over to the
next test document.

Signed-off-by: James Peach <[email protected]>
  • Loading branch information
jpeach authored Nov 4, 2020
1 parent 7a11adc commit ca80279
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/test/tapwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ func (t *TapWriter) NewDocument(desc string) Closer {

t.docCount++
t.stepCount = 0
t.stepErrors = nil
t.stepSkips = nil

return CloserFunc(func() {
// NOTE, it's a closed interval.
Expand Down

0 comments on commit ca80279

Please sign in to comment.