bunny-mock icon indicating copy to clipboard operation
bunny-mock copied to clipboard

Add support for delayed message exchange

Open rept opened this issue 2 years ago • 0 comments

When using the rabbitmq_delayed_message_exchange plugin : https://blog.rabbitmq.com/posts/2015/04/scheduling-messages-with-rabbitmq

Exchanges are defined like this with Bunny:

exchange = channel.exchange('devices.delayed', type: 'x-delayed-message', durable: true)

This gave issues with the BunnyMock gem because the type 'x-delayed-message' isn't known as possible type for an exchange. This pull request adds support for that type.

rept avatar Dec 21 '22 12:12 rept