Skip to content

Commit

Permalink
Fix bug in the GomockTestReporter
Browse files Browse the repository at this point in the history
The variadic function arguments where passed as array instead of a
regular list of arguments. See http://golang.org/doc/effective_go.html#Printing
for more details.
  • Loading branch information
fgrosse committed Feb 7, 2014
1 parent 3b3585f commit 0f14a62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thirdparty/gomocktestreporter/gomock_test_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func New() GomockTestReporter {
}

func (g GomockTestReporter) Errorf(format string, args ...interface{}) {
ginkgo.Fail(fmt.Sprintf(format, args), 3)
ginkgo.Fail(fmt.Sprintf(format, args...), 3)
}

func (g GomockTestReporter) Fatalf(format string, args ...interface{}) {
ginkgo.Fail(fmt.Sprintf(format, args), 3)
ginkgo.Fail(fmt.Sprintf(format, args...), 3)
}

0 comments on commit 0f14a62

Please sign in to comment.