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'") }