Skip to content

Commit ae5a7e6

Browse files
authored
Fix workflow interceptor is not propagated correctly for child workflows in TestWorkflowEnv (#1289)
<!-- Describe what has changed in this PR --> **What changed?** Workflow interceptor in child env is not populated from parent env. <!-- Tell your future self why have you made these changes --> **Why?** This is needed to correctly mock production env
1 parent 4b47141 commit ae5a7e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/internal_workflow_testsuite.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ func (env *testWorkflowEnvironmentImpl) newTestWorkflowEnvironmentForChild(param
363363
childEnv.testWorkflowEnvironmentShared = env.testWorkflowEnvironmentShared
364364
childEnv.workerOptions = env.workerOptions
365365
childEnv.workerOptions.DataConverter = params.dataConverter
366+
childEnv.workflowInterceptors = env.workflowInterceptors
366367
childEnv.registry = env.registry
367368

368369
if params.workflowID == "" {

0 commit comments

Comments
 (0)