From 5217b562bcd716323eab36e2cd7b77f92f4e2250 Mon Sep 17 00:00:00 2001 From: Joshua Kim <20001595+joshua-kim@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:35:38 -0500 Subject: [PATCH] nit Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com> --- snow/engine/common/test_sender.go | 2 +- vms/platformvm/vm_test.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/snow/engine/common/test_sender.go b/snow/engine/common/test_sender.go index 1350498039b4..ef77fc658a5d 100644 --- a/snow/engine/common/test_sender.go +++ b/snow/engine/common/test_sender.go @@ -360,7 +360,7 @@ func (s *SenderTest) SendAppError(ctx context.Context, nodeID ids.NodeID, reques case s.CantSendAppError && s.T != nil: require.FailNow(s.T, errSendAppError.Error()) } - return errSendAppResponse + return errSendAppError } // SendAppGossip calls SendAppGossipF if it was initialized. If it wasn't diff --git a/vms/platformvm/vm_test.go b/vms/platformvm/vm_test.go index 1b16e72bf3c2..30de31201c20 100644 --- a/vms/platformvm/vm_test.go +++ b/vms/platformvm/vm_test.go @@ -277,6 +277,9 @@ func defaultVM(t *testing.T, f fork) (*VM, database.Database, *mutableSharedMemo appSender.SendAppGossipF = func(context.Context, []byte) error { return nil } + appSender.SendAppErrorF = func(context.Context, ids.NodeID, uint32, int32, string) error { + return nil + } dynamicConfigBytes := []byte(`{"network":{"max-validator-set-staleness":0}}`) require.NoError(vm.Initialize(