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

A way to reset received events #32

Open
mohamnag opened this issue Jul 12, 2016 · 0 comments
Open

A way to reset received events #32

mohamnag opened this issue Jul 12, 2016 · 0 comments

Comments

@mohamnag
Copy link

I'm using this library to check for events published as messages during integration tests. The problem is however that in many tests I'm not interested in all of the events published but only some which are published from an specific point until now.

The read messages does not provide a way to set a position or skip events until an specific point. It would be great if it was possible to reset events or set the consumer to the end of messages at some point. As a result the next read message will get only the last x messages.

Currently to solve this problem I'm using a consumer in a separate thread which is receiving all the events into a list that can be cleared any time to get future events in an empty list.

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