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

New tests for worker #257

Merged
merged 4 commits into from
Nov 25, 2022
Merged

New tests for worker #257

merged 4 commits into from
Nov 25, 2022

Conversation

ChrisKujawa
Copy link
Member

  • Move logic of worker into own package.
    • For better encapsulation and testability
  • Write new tests for job worker/handler

Move worker code into own package, for better encapsulation and testing purposes.
Copy link
Member

@lenaschoenburg lenaschoenburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I like the refactoring, just one minor comment

go-chaos/worker/chaos_worker.go Outdated Show resolved Hide resolved
Replace global func pointer with parameter in handle method
@ChrisKujawa ChrisKujawa merged commit 1c6ea0c into main Nov 25, 2022
@ChrisKujawa ChrisKujawa deleted the zell-worker branch November 25, 2022 08:18
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