Hi
I have a few ChildWorkflows that receive signals. I can easily unit-test each such ChildWorkflow by giving them the signal with 1ms in RegisterDelayedCallback
.
My issue comes in 2 places during unit-testing ChildWorkflows combined into one ParentWorkflow that require signalling:
1- I need to know the child-workflow-ID to send signal as the usual SignalWorkflow from UnitTest Environment is not enough. How can I get that ID reliably as it keeps changing?
2- Sending signals to multiple child workflows in UnitTest even with registerdDelayed
only sends the first signal but the rest timeout even if I have the correct WorkflowIDs.
I checked all the samples including recovery and mutex_workflow where Signals are used in unit-tests but they don’t deal with children workflows.
EDIT:
I am not mocking Activities rather the resources they use are mocked.