Permalink
Browse files

Fix bug in the GomockTestReporter

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...
1 parent 3b3585f commit 0f14a621cd0e46c39f7ba7b1caf55b0ad76ecd3f @fgrosse fgrosse committed Feb 7, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 thirdparty/gomocktestreporter/gomock_test_reporter.go
View
4 thirdparty/gomocktestreporter/gomock_test_reporter.go
@@ -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.