diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-11-20 10:12:01 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-11-20 10:40:20 +0100 |
| commit | c45726dbd6369405b033f2b17ddf07a1004d9bc4 (patch) | |
| tree | 5531471cca21870406362659e7bc9634a2f206e8 /internal/fsm/fsm_test.go | |
| parent | 257c743f8dae1fe3c6a1d899da852b7b61c54986 (diff) | |
FSM: Fix new keyword linting error
Diffstat (limited to 'internal/fsm/fsm_test.go')
| -rw-r--r-- | internal/fsm/fsm_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/fsm/fsm_test.go b/internal/fsm/fsm_test.go index ebbf4c7..abe73e7 100644 --- a/internal/fsm/fsm_test.go +++ b/internal/fsm/fsm_test.go @@ -149,9 +149,9 @@ func TestGoTransitionRequired(t *testing.T) { for _, c := range cases { curr := machine.Current - machine.StateCallback = func(_ StateID, new StateID, data interface{}) bool { - if c.WantErr == "" && new != c.In { - t.Fatalf("new state is not what we want, got: %v, want: %v", new, c.In) + machine.StateCallback = func(_ StateID, newState StateID, data interface{}) bool { + if c.WantErr == "" && newState != c.In { + t.Fatalf("new state is not what we want, got: %v, want: %v", newState, c.In) } v, ok := data.(string) if !ok { @@ -217,9 +217,9 @@ func TestGoTransition(t *testing.T) { machine.StateCallback = func(StateID, StateID, interface{}) bool { return c.Handle } - machine.StateCallback = func(_ StateID, new StateID, data interface{}) bool { - if c.WantErr == "" && new != c.In { - t.Fatalf("new state is not what we want, got: %v, want: %v", new, c.In) + machine.StateCallback = func(_ StateID, newState StateID, data interface{}) bool { + if c.WantErr == "" && newState != c.In { + t.Fatalf("new state is not what we want, got: %v, want: %v", newState, c.In) } v, ok := data.(string) if !ok { |
