I’m writing unit tests for a workflow with an activity, the mock activity always returns error of type internal.ActivityError (https://github.com/temporalio/sdk-go/blob/30c8ca297514dae65f8b7003489f67cdef7180ac/internal/error.go#L199)
MyActivity(ctx context.Context) (string, error)
In unit test:
myErr := errors.New(“some error”)
env.OnActivity(MyActivity, ctx).
Return(“”, myErr)
but it always returns ActivityError instead of myErr in the test. Do I have to setup the test in a different way?