From 6c7c3faf281422a12063f871a190601311ec7804 Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Thu, 4 Apr 2024 13:43:46 -0700 Subject: [PATCH] fix lint error --- machine_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machine_test.go b/machine_test.go index bd91176..f3c5637 100644 --- a/machine_test.go +++ b/machine_test.go @@ -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" {