cloudbase / garm

GitHub Actions Runner Manager
Apache License 2.0
135 stars 26 forks source link

Consume events before testing #266

Closed gabriel-samfira closed 5 months ago

gabriel-samfira commented 5 months ago

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.