Skip to content

Commit

Permalink
Fix handler test
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Camata <[email protected]>
  • Loading branch information
douglascamata committed Jan 9, 2024
1 parent fab1c8e commit 0bdf584
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/receive/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,19 @@ type fakePeersGroup struct {
closeCalled map[string]bool
}

func (g *fakePeersGroup) markPeerDown(s string) {
}

func (g *fakePeersGroup) markPeerUp(s string) {
}

func (g *fakePeersGroup) isPeerUp(s string) bool {
return true
}

func (g *fakePeersGroup) resetBackoff() {
}

func (g *fakePeersGroup) close(addr string) error {
if g.closeCalled == nil {
g.closeCalled = map[string]bool{}
Expand Down

0 comments on commit 0bdf584

Please sign in to comment.