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

test(mu): add tests for cron monitor functions #901

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

jrdn91
Copy link
Contributor

@jrdn91 jrdn91 commented Jul 19, 2024

This PR adds a refactor to the init monitor HOF so that it can be tested and adds some initial tests for the init function and the "kill" function.

TODO: tests still need to be added for startMonitoredProcessWith and it will probably need refactored to add dependency injection to make it testable.

The "kill" function probably needs another test or may also need refactored for dependency injection to properly test it.

@jrdn91 jrdn91 requested a review from VinceJuliano July 19, 2024 18:08
@jrdn91 jrdn91 force-pushed the jrdn91/test-mu-cron-process branch from bb0dd6d to e2d37ec Compare July 19, 2024 18:25
@TillaTheHun0 TillaTheHun0 force-pushed the jrdn91/test-mu-cron-process branch 2 times, most recently from 3c69105 to f4dee4a Compare July 19, 2024 19:03
@TillaTheHun0 TillaTheHun0 force-pushed the jrdn91/test-mu-cron-process branch from f4dee4a to 3dccb33 Compare July 19, 2024 19:05
Copy link
Member

@TillaTheHun0 TillaTheHun0 left a comment

Choose a reason for hiding this comment

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

LGTM

@TillaTheHun0 TillaTheHun0 merged commit 70f7558 into main Jul 19, 2024
3 checks passed
@TillaTheHun0 TillaTheHun0 deleted the jrdn91/test-mu-cron-process branch July 19, 2024 19:06
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