sdk-go
sdk-go copied to clipboard
OnWorkflow test mocker doesn't propagate context headers
Expected Behavior
If the parent workflow adds headers to the workflow context it passes to the child workflow, I would expect to be able to verify those headers using OnWorkflow mocker
Actual Behavior
OnWorkflow mocker was not able to see the headers passed through the workflow context from the parent workflow
Steps to Reproduce the Problem
- gh repo clone codemonkeycxy/nexus-exp
- go test
- You can see
Test_ChildWorkflowContextPropagationpasses as expected, which confirms the header passing is working and the child workflow can see it - But
Test_ChildWorkflowContextPropagation_Matcherfails, which means the headers are not viewable via the OnWorkflow mocker
Specifications
- Version: v1.24.0
- Platform:
uname -a
Darwin Xinyis-Laptop.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000 arm64