Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ribice committed Jul 21, 2024
1 parent 0a79ba0 commit d1c0861
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions zerolog/sentryzerolog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ func TestWrite_TraceDoesNotPanic(t *testing.T) {
return event
},
},
Options: Options{
WithBreadcrumbs: true,
},
}
writer, err := New(cfg)
require.Nil(t, err)
Expand Down Expand Up @@ -164,6 +167,9 @@ func TestWriteLevel(t *testing.T) {
return event
},
},
Options: Options{
WithBreadcrumbs: true,
},
}
writer, err := New(cfg)
require.Nil(t, err)
Expand Down Expand Up @@ -191,7 +197,8 @@ func TestWrite_Disabled(t *testing.T) {
},
},
Options: Options{
Levels: []zerolog.Level{zerolog.FatalLevel},
Levels: []zerolog.Level{zerolog.FatalLevel},
WithBreadcrumbs: true,
},
}

Expand Down Expand Up @@ -225,7 +232,8 @@ func TestWriteLevel_Disabled(t *testing.T) {
},
},
Options: Options{
Levels: []zerolog.Level{zerolog.FatalLevel},
Levels: []zerolog.Level{zerolog.FatalLevel},
WithBreadcrumbs: true,
},
}
writer, err := New(cfg)
Expand Down

0 comments on commit d1c0861

Please sign in to comment.