Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkgodara committed Mar 10, 2025
1 parent 214804a commit 96b9438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/broadway_rabbitmq/ampq_client_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,10 @@ defmodule BroadwayRabbitMQ.AmqpClientTest do
before_consume: fn _channel -> :bad_return_value end
)

assert {:ok, %AMQP.Channel{} = channel} = AmqpClient.setup_channel(config)

message = "unexpected return value from the :before_consume function: :bad_return_value"
assert_raise RuntimeError, message, fn -> AmqpClient.setup_channel(config) end
assert_raise RuntimeError, message, fn -> AmqpClient.consume(channel, config) end
end
end

Expand Down

0 comments on commit 96b9438

Please sign in to comment.