From 9296c7193d1a39621bb2d3e25b5d69fdbde3f102 Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Mon, 6 Nov 2023 16:35:27 -0500 Subject: [PATCH] Report assert errors as t.Error --- internal/assert/assert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/assert/assert.go b/internal/assert/assert.go index b88aaad4..59748b23 100644 --- a/internal/assert/assert.go +++ b/internal/assert/assert.go @@ -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 {