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

Rewrite TestCronWorkflow_Failed/Succeeded as SDK integration tests #2345

Merged
merged 2 commits into from
Jan 6, 2022

Conversation

dnr
Copy link
Member

@dnr dnr commented Jan 5, 2022

What changed?
Add new integration test TestCronWorkflowCompletionStates using sdk to replace two existing tests.

Why?
The old tests were confusing and flaky.

How did you test it?
is a test

Potential risks
It might also be flaky: it's still dependent on real time

Is hotfix candidate?

@dnr dnr requested a review from a team January 5, 2022 07:23
return events[len(events)-1]
}

func (s *IntegrationBase) decodePayloadsString(ps *commonpb.Payloads) (r string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ps -> photoshop?

Copy link
Contributor

Choose a reason for hiding this comment

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

about (r string)

plz define the return value within the function body and return the result

Copy link
Member Author

Choose a reason for hiding this comment

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

I think these are acceptable for a three-line helper function. Also, they were just moved from another file

@dnr dnr enabled auto-merge (squash) January 5, 2022 23:43
@dnr dnr merged commit 412035f into temporalio:master Jan 6, 2022
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