Skip to content

Commit

Permalink
Fix Changed Sentry SDK Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mpass99 authored and MrSerth committed Sep 11, 2024
1 parent a323409 commit fe6ed1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/logging/logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ func (s *MainTestSuite) TestSentryHookDoesNotModifyGlobalScope() {
InitializeLogging(logrus.DebugLevel.String(), dto.FormatterText)

event := client.EventFromMessage("TestEvent", sentry.LevelError)
event = sentry.CurrentHub().Scope().ApplyToEvent(event, nil)
event = sentry.CurrentHub().Scope().ApplyToEvent(event, nil, client)
_, ok := event.Contexts[SentryContextKey]
s.Require().False(ok)

log.WithField(dto.KeyRunnerID, tests.DefaultRunnerID).Warn("Test")

event = client.EventFromMessage("TestEvent", sentry.LevelError)
event = sentry.CurrentHub().Scope().ApplyToEvent(event, nil)
event = sentry.CurrentHub().Scope().ApplyToEvent(event, nil, client)
_, ok = event.Contexts[SentryContextKey]
s.Require().False(ok)
}

0 comments on commit fe6ed1b

Please sign in to comment.