Skip to content

Commit

Permalink
tweak mockT implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
appilon authored and kmoe committed Apr 23, 2020
1 parent acb365c commit 71c6b0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helper/resource/testing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ func (t *mockT) Error(args ...interface{}) {
}

func (t *mockT) FailNow() {
t.f = true

panic("mockT.FailNow")
}

Expand All @@ -186,7 +188,7 @@ func (t *mockT) Fatal(args ...interface{}) {
}

func (t *mockT) Fatalf(format string, args ...interface{}) {
t.Fatal(format, args)
t.Fatal(fmt.Sprintf(format, args...))
}

func (t *mockT) Helper() {}
Expand Down

0 comments on commit 71c6b0c

Please sign in to comment.