Skip to content

Commit

Permalink
Remove (useless) flaky test (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbusi authored May 28, 2024
1 parent d52209b commit 719581c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/basic_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,5 @@ defmodule BasicTest do

assert {:ok, ^consumer_tag} = Basic.cancel(meta[:chan], consumer_tag)
end

test "cancel exits the process when channel is closed", meta do
{:ok, consumer_tag} = Basic.consume(meta[:chan], meta[:queue], self())

Channel.close(meta[:chan])

Process.flag(:trap_exit, true)
assert {:normal, _} = catch_exit(Basic.cancel(meta[:chan], consumer_tag))
end
end
end

0 comments on commit 719581c

Please sign in to comment.