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 more activity timeout tests #6979

Merged
merged 4 commits into from
Dec 12, 2024
Merged

add more activity timeout tests #6979

merged 4 commits into from
Dec 12, 2024

Conversation

ychebotarev
Copy link
Contributor

@ychebotarev ychebotarev commented Dec 12, 2024

What changed?

We didn't test scenarios when one of the timeouts is not provided.

Why?

To increase test scenario coverage.

@ychebotarev ychebotarev requested a review from a team as a code owner December 12, 2024 17:49
@@ -271,27 +271,42 @@ func (s *ActivityClientTestSuite) Test_ActivityTimeouts() {
f3 := workflow.ExecuteActivity(ctx3, activityFn)

ctx4 := workflow.WithActivityOptions(ctx, workflow.ActivityOptions{
ActivityID: "ScheduleToCloseNotSet",
Copy link
Member

Choose a reason for hiding this comment

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

Have you considered test cases and sub tests approach? It makes tests more verbose.

@ychebotarev ychebotarev merged commit cdf09db into main Dec 12, 2024
49 checks passed
@ychebotarev ychebotarev deleted the y_activity_test branch December 12, 2024 23:49
bergundy pushed a commit that referenced this pull request Dec 17, 2024
## What changed?
<!-- Describe what has changed in this PR -->

We didn't test scenarios when one of the timeouts is not provided.

## Why?
<!-- Tell your future self why have you made these changes -->
To increase test scenario coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants