Skip to content

OnWorkflow test mocker doesn't propagate context headers #2005

@codemonkeycxy

Description

@codemonkeycxy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions