Skip to content

Commit

Permalink
test: covers case it doesn't report shutdown exits
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Aug 22, 2024
1 parent cd7939a commit fa2fc81
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/tower_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ defmodule TowerTest do
assert [] = reported_events()
end

test "doesn't report an shutdown exit" do
in_unlinked_process(fn ->
exit(:shutdown)
end)

assert [] = reported_events()
end

test "reports an abnormal exit" do
capture_log(fn ->
in_unlinked_process(fn ->
Expand Down

0 comments on commit fa2fc81

Please sign in to comment.