Skip to content

Commit

Permalink
Report assert errors as t.Error
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Nov 6, 2023
1 parent 2be1555 commit 9296c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/assert/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func report(tb testing.TB, got, want any, desc string, showWant bool, options ..
if showWant {
fmt.Fprintf(buffer, "want:\t%+v\n", want)
}
tb.Fatal(buffer.String())
tb.Error(buffer.String())
}

func isNil(got any) bool {
Expand Down

0 comments on commit 9296c71

Please sign in to comment.