Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Dec 5, 2023
1 parent ad1b8e2 commit fabe115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_routers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit fabe115

Please sign in to comment.