summaryrefslogtreecommitdiff
path: root/internal/fsm/fsm_test.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-05-06 12:40:47 +0200
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-05-06 12:40:47 +0200
commit347b20fc91505584bc9efbeca89590a411b95e79 (patch)
tree9dfc600e957c4a881115f8bc8a9cc107a4f0cc9c /internal/fsm/fsm_test.go
parent9c4985368aee638d982f30ea7bc5c7ee71ae3ab3 (diff)
All: Run modernize --test --fix
Diffstat (limited to 'internal/fsm/fsm_test.go')
-rw-r--r--internal/fsm/fsm_test.go8
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)
}