Implementing integration tests to test SignalWorkflow
so this is what I have inside the workflow
var sgWebhook SgWebhook
signalChan := workflow.GetSignalChannel(ctx, SignalWebhook)
signalChan.Receive(ctx, &sgWebhook)
This is the test:
// mocking activities and other stuff
tk.WorkflowEnv.ExecuteWorkflow(workflows.MyWorkflow, ... )
err := tc.SignalWorkflow(context.Background(), wfId, "", workflows.SignalWebhook, sgWebhook)
And this is what I get:
Failed to signal workflow: *serviceerror.NotFound=operation GetCurrentExecution encounter not found)
Not really sure what else to put, please, feel free to ask for more info.