From fabe115471265f87130b591a2dcf1fd520b54954 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 5 Dec 2023 14:20:55 +0100 Subject: [PATCH] fmt --- server_routers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_routers_test.go b/server_routers_test.go index 9a9cb9c..2ef826d 100644 --- a/server_routers_test.go +++ b/server_routers_test.go @@ -450,7 +450,7 @@ func TestFindPeers(t *testing.T) { pid := peer.ID("hello") mr1 := &mockRouter{} - mr1.On("FindPeers", mock.Anything, pid, 10).Return(iter.ToResultIter(iter.FromSlice([]*types.PeerRecord{&types.PeerRecord{Schema: "peer", ID: &pid}})), nil) + mr1.On("FindPeers", mock.Anything, pid, 10).Return(iter.ToResultIter(iter.FromSlice([]*types.PeerRecord{{Schema: "peer", ID: &pid}})), nil) mr2 := &mockRouter{} mr2.On("FindPeers", mock.Anything, pid, 10).Return(nil, errors.New("error b"))