Skip to content

Commit 4646ca3

Browse files
committed
Fix tests on Elixir 1.11
1 parent db8e7e9 commit 4646ca3

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

test/support/test_helpers.ex

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,7 @@ defmodule Sentry.TestHelpers do
3232
{key, original_val} -> :persistent_term.put({:sentry_config, key}, original_val)
3333
end)
3434

35-
all_reverted_config = all_config()
36-
37-
try do
38-
assert all_original_config == all_reverted_config
39-
rescue
40-
exception in [ExUnit.AssertionError] ->
41-
diff_info =
42-
ExUnit.Formatter.format_assertion_diff(exception, 4, :infinity, fn _, val -> val end)
43-
44-
flunk("""
45-
All config should be reverted to the original state, but it wasn't! This happened while
46-
reverting config after setting this:
47-
48-
#{inspect(config)}
49-
50-
Left: #{diff_info[:left]}
51-
52-
Right: #{diff_info[:right]}
53-
""")
54-
end
35+
assert all_original_config == all_config()
5536
end)
5637
end
5738

0 commit comments

Comments
 (0)