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 support for unit testing child workflows that call continue-as-new #1437

Merged
merged 4 commits into from
Apr 9, 2024

Conversation

mfateev
Copy link
Member

@mfateev mfateev commented Apr 9, 2024

What was changed

Added support for unit testing child workflows that call continue-as-new.

The change is safe as it wasn't possible to test such scenarios.

Why?

The unit testing framework doesn't support tests that include child workflows that call continue-as-new.

Checklist

  1. Closes It is not possible to unit test a child workflow that calls continue as new. #1435

  2. How was this tested:
    Added Test_ChildWorkflow_ContinueAsNew unit test.

@mfateev mfateev requested a review from a team as a code owner April 9, 2024 05:08
@cretz
Copy link
Member

cretz commented Apr 9, 2024

Will let @Quinn-With-Two-Ns review to see if he spots anything

@mfateev mfateev merged commit a02b92e into temporalio:master Apr 9, 2024
13 checks passed
@mfateev mfateev deleted the continue-as-new-test branch April 9, 2024 18:55
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.

It is not possible to unit test a child workflow that calls continue as new.
3 participants