Skip to content

Commit

Permalink
check err
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Nov 2, 2024
1 parent b80d186 commit fde7f6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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'")
}
Expand Down

0 comments on commit fde7f6b

Please sign in to comment.