Skip to content

Commit

Permalink
adapt to sentry 10.8
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Nov 4, 2024
1 parent d7fbda8 commit d6ebc42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tower_sentry_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ defmodule TowerSentryTest do
"message" => %{
"formatted" => "(exit) :abnormal"
},
"threads" => [%{"stacktrace" => stacktrace}],
"threads" => [thread],
"request" => %{
"method" => "GET",
"url" => ^url,
Expand All @@ -308,7 +308,7 @@ defmodule TowerSentryTest do
)

# Plug.Cowboy doesn't provide stacktrace for exits
assert empty_stacktrace?(stacktrace)
assert empty_stacktrace?(Map.get(thread, "stacktrace"))

done.()

Expand Down Expand Up @@ -434,7 +434,7 @@ defmodule TowerSentryTest do

# sentry-elixir 10.3 and 10.4
defp empty_stacktrace?(%{"frames" => []}), do: true
# sentry-elixir 10.5 and 10.6
# sentry-elixir 10.5, 10.6 and 10.8
defp empty_stacktrace?(nil), do: true
# sentry-elixir 10.7
# https://github.com/getsentry/sentry-elixir/pull/775
Expand Down

0 comments on commit d6ebc42

Please sign in to comment.