Skip to content

Commit

Permalink
fix mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
cheggaaa committed Nov 15, 2024
1 parent 944c9cf commit 49e46e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commonspace/spaceutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ func (p *mockPeerManager) GetNodePeers(ctx context.Context) (peers []peer.Peer,
return nil, nil
}

func (p *mockPeerManager) KeepAlive(ctx context.Context) {}

type testPeerManagerProvider struct {
}

Expand Down
2 changes: 2 additions & 0 deletions commonspace/sync/synctest/testpeermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ func (c *TestPeerManager) SendMessage(ctx context.Context, peerId string, msg dr
return []peer.Peer{pr}, nil
})
}

func (c *TestPeerManager) KeepAlive(ctx context.Context) {}

0 comments on commit 49e46e0

Please sign in to comment.