arempe93 / bunny-mock

A mock client for RabbitMQ modeled after the Bunny client in ruby
http://www.rubydoc.info/github/arempe93/bunny-mock
MIT License
44 stars 37 forks source link

Add support for delayed message exchange #47

Open rept opened 1 year ago

rept commented 1 year ago

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.