sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

OnWorkflow test mocker doesn't propagate context headers

Open codemonkeycxy opened this issue 5 months ago • 0 comments

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

  1. gh repo clone codemonkeycxy/nexus-exp
  2. go test
  3. You can see Test_ChildWorkflowContextPropagation passes as expected, which confirms the header passing is working and the child workflow can see it
  4. But Test_ChildWorkflowContextPropagation_Matcher fails, 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

codemonkeycxy avatar Jul 20 '25 00:07 codemonkeycxy