Skip to content

Commit

Permalink
common/reporter: use t.Fatalf when not able to create new mock
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Dec 2, 2023
1 parent 0fedcf8 commit 19eaadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/reporter/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func NewMock(t testing.TB) *Reporter {
t.Helper()
r, err := New(Configuration{})
if err != nil {
t.Errorf("New() error:\n%+v", err)
t.Fatalf("New() error:\n%+v", err)
}
return r
}
Expand Down

0 comments on commit 19eaadd

Please sign in to comment.