You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you provide an example on how to raise Bunny::ConnectionClosedError and Bunny::TCPConnectionFailed errors. I'm having trouble getting these to fire.
Maybe something like:
it'should route messages from exchanges'dochannel=BunnyMock.new.start.channelxchg=channel.topic'xchg.topic'queue=channel.queue'queue.test'queue.bindxchgallow(xchg).toreceive(:publish).and_raise(Bunny::ConnectionClosedError)xchg.publish'Routed message',routing_key: '*.test'expect(queue.message_count).toeq(1)expect(queue.pop[:message]).toeq('Routed message')end
The text was updated successfully, but these errors were encountered:
Can you provide an example on how to raise
Bunny::ConnectionClosedError
andBunny::TCPConnectionFailed
errors. I'm having trouble getting these to fire.Maybe something like:
The text was updated successfully, but these errors were encountered: