Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/internal_workflow_testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,11 @@ func (w *workflowExecutorWrapper) Execute(ctx Context, input *commonpb.Payloads)
if err != nil {
return nil, err
}
// Ensure ctxCopy matches real execution: apply header propagation to the context
ctxCopy, err = workflowContextWithHeaderPropagated(ctxCopy, w.env.header, w.env.GetContextPropagators())
if err != nil {
return nil, err
}
go func() {
// getWorkflowMockReturn could block if mock is configured to wait. The returned mockRet is what has been configured
// for the mock by using MockCallWrapper.Return(). The mockRet could be mock values or mock function. We process
Expand Down