You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Unit testing a child workflow that depends on a context passed from the parent is impossible to test at this point. For example lets say we want to get the parentExecution detail. We do the following: parentExecution := workflow.GetInfo(ctx).ParentWorkflowExecution
Since we are running this child workflow from a new test workflow execution it will return nil. This results in having a nil reference in our code.
Proposed Solution
Having an option to set what the ParentWorkflowExecution will be when setting up a New workflow environment would be great.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Unit testing a child workflow that depends on a context passed from the parent is impossible to test at this point. For example lets say we want to get the parentExecution detail. We do the following:
parentExecution := workflow.GetInfo(ctx).ParentWorkflowExecution
Since we are running this child workflow from a new test workflow execution it will return nil. This results in having a nil reference in our code.
Proposed Solution
Having an option to set what the ParentWorkflowExecution will be when setting up a New workflow environment would be great.
The text was updated successfully, but these errors were encountered: