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

Add unit tests for IsValidContext #5546

Conversation

arzonus
Copy link
Contributor

@arzonus arzonus commented Dec 27, 2023

What changed?
Unit tests for IsValidContext have been added. IsValidContext was a bit modified.

Why?
IsValidContext was not covered by unit tests. IsValidContext contained an invalid condition. ctx.Done always returns a channel if context.Deadline may return a deadline. So the check didn't happen. The change fixes it.

How did you test it?
Unit tests are passed

Potential risks

Release notes

Documentation Changes

@arzonus arzonus merged commit 2037066 into cadence-workflow:master Dec 27, 2023
16 checks passed
@arzonus arzonus deleted the CDNC-6460_add_unit_tests_for_is_valid_context branch December 27, 2023 10:03
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