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

Should BlackholePublisher publish events as well? #87

Open
marcw opened this issue Jun 7, 2016 · 1 comment
Open

Should BlackholePublisher publish events as well? #87

marcw opened this issue Jun 7, 2016 · 1 comment

Comments

@marcw
Copy link

marcw commented Jun 7, 2016

I currently want to inspect messages that have been sent during my tests, without messages reaching my real broker. It's not possible out of the box as the BlackholePublisher does not collect data and is not plugged to the event dispatcher.

Before working on a patch, I want to be sure that it doesn't break the event dispatching meaning if events are sent from the BlackholePublisher.

Any thoughts on that matter?

@odolbeau
Copy link
Member

We have the (near) the same need and we use a custom publisher which is a kind of stub.
It's totally linked to our "business" logic as we read the message content to check that we dispatched the expected one.

Anyway, dispatching the event inside the BlackholePublisher don't seems to be a problem IMO.

As you created it, what's your opinion @blaugueux?

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

2 participants