fix lint error
All checks were successful
Lint / golangci-lint (push) Successful in 9m56s
Machine Tests / test (push) Successful in 41s

This commit is contained in:
Matthew Rich 2024-04-04 13:43:46 -07:00
parent 85e39191b8
commit 6c7c3faf28

View File

@ -57,7 +57,7 @@ func TestMachineAddSubscription(t *testing.T) {
s.AddTransition("connect", "disconnected", "start_connection")
assert.Nil(t, s.AddSubscription("connect", x))
s.AddModel(setupModel("disconnected"))
s.Trigger("connect")
assert.Nil(t, s.Trigger("connect"))
exitMessage := <-*x.(*EventChannel)
enterMessage := <-*x.(*EventChannel)
if exitMessage.on == EXITSTATEEVENT && exitMessage.source == "disconnected" {