Skip to content

Commit

Permalink
Fix logrus tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Nov 29, 2022
1 parent c60dcb3 commit d01ce46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion logrus/logrusentry_test.go
Expand Up @@ -12,6 +12,7 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
pkgerr "github.com/pkg/errors"
"github.com/sirupsen/logrus"

Expand Down Expand Up @@ -399,7 +400,12 @@ func Test_entry2event(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
got := h.entryToEvent(tt.entry)
if d := cmp.Diff(tt.want, got); d != "" {
opts := cmp.Options{
cmpopts.IgnoreFields(sentry.Event{},
"sdkMetaData",
),
}
if d := cmp.Diff(tt.want, got, opts); d != "" {
t.Error(d)
}
})
Expand Down

0 comments on commit d01ce46

Please sign in to comment.