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

Extend worker mocks #1000

Merged
merged 13 commits into from
Feb 28, 2024
Merged

Extend worker mocks #1000

merged 13 commits into from
Feb 28, 2024

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Feb 26, 2024

This PR adds a testWorker, it's essentially an actual worker built on top of a mock of our bus. I want to keep the mocks in the worker package for the time being, I tried finding a better place for it but moving it into a separate package makes it a lot more annoying because you have to expose everything and you can't easily manipulate the mocks. I had some ideas to split mocks_test.go and/or create a testing package exposing these mocks but the file ended up being reasonably manageable (for now at least) with ~600 lines.

@peterjan peterjan changed the title extend worker mocks Extend worker mocks Feb 26, 2024
@peterjan peterjan self-assigned this Feb 27, 2024
@peterjan peterjan marked this pull request as ready for review February 27, 2024 11:23
worker/worker_test.go Outdated Show resolved Hide resolved
worker/worker_test.go Outdated Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl merged commit e031cf4 into dev Feb 28, 2024
8 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/mock-bus branch February 28, 2024 12:14
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.

2 participants