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
From the v1.0.0 release, the cancelFunc is introduced during FSM init with context. However, we had decoupled the callback function. When the unit test of callback may panic since it may cause the cancelFunc is not assignable.
For example:
create a callback function and do the unit test with a callback function. The input event may not have cancelFunc and caused panic.
From the v1.0.0 release, the
cancelFunc
is introduced during FSM init with context. However, we had decoupled the callback function. When the unit test of callback may panic since it may cause thecancelFunc
is not assignable.For example:
create a callback function and do the unit test with a callback function. The input event may not have cancelFunc and caused panic.
P.S: Here is the event caused the panic.
Suggestion:
cancelFunc
if it is nil to give decouple when testing the callback function here.cancelFunc
to CancelFunc or a set function to assign thecancelFunc
.The text was updated successfully, but these errors were encountered: