diff options
Diffstat (limited to 'internal/fsm/fsm_test.go')
| -rw-r--r-- | internal/fsm/fsm_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/fsm/fsm_test.go b/internal/fsm/fsm_test.go index c160477..dc8ddc8 100644 --- a/internal/fsm/fsm_test.go +++ b/internal/fsm/fsm_test.go @@ -57,7 +57,7 @@ func testFSM() FSM { Transitions: []Transition{}, }, } - cb := func(StateID, StateID, interface{}) bool { + cb := func(StateID, StateID, any) bool { return false } namecb := func(in StateID) string { @@ -149,7 +149,7 @@ func TestGoTransitionRequired(t *testing.T) { for _, c := range cases { curr := machine.Current - machine.StateCallback = func(_ StateID, newState StateID, data interface{}) bool { + machine.StateCallback = func(_ StateID, newState StateID, data any) bool { if c.WantErr == "" && newState != c.In { t.Fatalf("new state is not what we want, got: %v, want: %v", newState, c.In) } @@ -214,10 +214,10 @@ func TestGoTransition(t *testing.T) { for _, c := range cases { curr := machine.Current - machine.StateCallback = func(StateID, StateID, interface{}) bool { + machine.StateCallback = func(StateID, StateID, any) bool { return c.Handle } - machine.StateCallback = func(_ StateID, newState StateID, data interface{}) bool { + machine.StateCallback = func(_ StateID, newState StateID, data any) bool { if c.WantErr == "" && newState != c.In { t.Fatalf("new state is not what we want, got: %v, want: %v", newState, c.In) } |
