Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Bindings #43

Open
verenion opened this issue Sep 25, 2019 · 0 comments
Open

Duplicate Bindings #43

verenion opened this issue Sep 25, 2019 · 0 comments

Comments

@verenion
Copy link

If you bind a queue to an exchange multiple times, then publish a message to the exchange, the expectation is to only receive one message. This can be seen in bunny here:

@bindings.push(binding) unless @bindings.include?(binding)

It only creates a new binding if the binding doesn't already exist. The Bunny Mock gem however doesn't perform this check, so when the queue is bound multiple times, if we perform publish, the message count is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant