Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
  • Loading branch information
joshua-kim committed Feb 20, 2024
1 parent 619235b commit 5217b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion snow/engine/common/test_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions vms/platformvm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5217b56

Please sign in to comment.