From fde7f6b3708ced0878a23bf660b30acf5dc88264 Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Sat, 2 Nov 2024 17:17:29 +0200 Subject: [PATCH] check err --- parse_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/parse_test.go b/parse_test.go index 421df788..03aa954c 100644 --- a/parse_test.go +++ b/parse_test.go @@ -24,6 +24,7 @@ func TestParseErrors(t *testing.T) { "event": "accepted", "timestamp": "1420255392.850187" }`)) + require.NotNil(t, err) // TODO(vtopc): do not compare strings, use errors.Is or errors.As: require.Contains(t, err.Error(), "failed to parse event 'accepted'") }