Skip to content

Commit e620855

Browse files
committed
test: fix for tower 0.7
1 parent f336d2e commit e620855

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/tower_error_tracker_test.exs

+5-2
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,19 @@ defmodule TowerErrorTrackerTest do
235235
[
236236
%{
237237
kind: "message",
238-
reason: "[emergency] Emergency!",
238+
reason: reason1,
239239
occurrences: [_]
240240
},
241241
%{
242242
kind: "message",
243-
reason: "[critical] Critical!",
243+
reason: reason2,
244244
occurrences: [_]
245245
}
246246
] = TestApp.Repo.all(ErrorTracker.Error) |> TestApp.Repo.preload(:occurrences)
247247
)
248+
249+
# tower 0.7 async reporting doesn't necessary report them ordered
250+
assert Enum.sort([reason1, reason2]) == ["[critical] Critical!", "[emergency] Emergency!"]
248251
end
249252

250253
defp in_unlinked_process(fun) when is_function(fun, 0) do

0 commit comments

Comments
 (0)