You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should be able to just provide a callback for OnComplete in the testsuite.TestUpdateCallbacks.
Either that, or I should get an error that tells me what is really wrong (not nil pointer).
Actual Behavior
This doesn't seem to check that each callback is provided so will panic when invoked downstream. These nil pointer exceptions are super hard to understand coming out of this test suite and make testing brittle with UpdateWorkflow.
I recommend we either:
catch the error and provided a more meaningful error
(better) provide no-op stubs when a particular callback is not provided (eg OnAccept: func() {})
Expected Behavior
I should be able to just provide a callback for
OnComplete
in thetestsuite.TestUpdateCallbacks
.Either that, or I should get an error that tells me what is really wrong (not nil pointer).
Actual Behavior
This doesn't seem to check that each callback is provided so will panic when invoked downstream. These
nil pointer
exceptions are super hard to understand coming out of this test suite and make testing brittle with UpdateWorkflow.I recommend we either:
OnAccept: func() {}
)Somewhere in here probably:
https://github.com/temporalio/sdk-go/blob/master/internal/internal_workflow_testsuite.go#L2986
Steps to Reproduce the Problem
This will fail because I don't have
OnAccept
provided as a noop.IMO this should be an opt-in facility.
Specifications
The text was updated successfully, but these errors were encountered: