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

Consume events before testing #266

Merged

Conversation

gabriel-samfira
Copy link
Member

The watcher uses a buffered channel, so we may get stray events that we need to consume before generating new ones in the tests.

This is just for testing purposes. In actual use cases, we never expect to only have one event generated.

The watcher uses a buffered channel, so we may get stray events that
we need to consume before generating new ones in the tests.

This is just for testing purposes. In actual use cases, we never expect
to only have one event generated.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
@gabriel-samfira gabriel-samfira marked this pull request as ready for review June 20, 2024 12:40
@gabriel-samfira gabriel-samfira merged commit 5eef3b6 into cloudbase:main Jun 20, 2024
4 checks passed
@gabriel-samfira gabriel-samfira deleted the consume-watcher-events branch June 20, 2024 12:50
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

Successfully merging this pull request may close these issues.

1 participant