From 0bdf584ed102c02c1c2c8b834f9b8a116907a59a Mon Sep 17 00:00:00 2001 From: Douglas Camata <159076+douglascamata@users.noreply.github.com> Date: Tue, 9 Jan 2024 12:52:16 +0100 Subject: [PATCH] Fix handler test Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> --- pkg/receive/handler_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkg/receive/handler_test.go b/pkg/receive/handler_test.go index de3bfc2303..e9fd2c99bf 100644 --- a/pkg/receive/handler_test.go +++ b/pkg/receive/handler_test.go @@ -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{}