Skip to content

Conversation

@Quinn-With-Two-Ns
Copy link
Contributor

Handle async completion in TestActivityEnvironment

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner April 23, 2025 05:13
private static class AsyncActivityImpl implements TestActivity {
@Override
public String activity1(String input) {
Activity.getExecutionContext().doNotCompleteOnReturn();
Copy link
Member

Choose a reason for hiding this comment

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

When running in a non-test-environment, does this throw? If not, not sure we should in test environment either. If it does, can we throw the same thing in the test environment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doNotCompleteOnReturn behaves the same in the test environment and non-test-environment

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 0f9813c into temporalio:master Apr 23, 2025
8 checks passed
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