Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
add mocks for GossipNeighbourSubset
Browse files Browse the repository at this point in the history
  • Loading branch information
murali-reddy authored and bboreham committed Nov 5, 2019
1 parent 3780ce4 commit 640c5c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipam/testutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func (m *mockGossipComms) GossipBroadcast(update mesh.GossipData) {
}
}

func (m *mockGossipComms) GossipNeighbourSubset(update mesh.GossipData) {
m.GossipBroadcast(update)
}
func equalByteBuffer(a, b []byte) bool {
if len(a) != len(b) {
return false
Expand Down
4 changes: 4 additions & 0 deletions testing/gossip/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,7 @@ func (client TestRouterClient) GossipUnicast(dstPeerName mesh.PeerName, buf []by
func (client TestRouterClient) GossipBroadcast(update mesh.GossipData) {
client.router.gossipBroadcast(client.sender, update)
}

func (client TestRouterClient) GossipNeighbourSubset(update mesh.GossipData) {
client.router.gossip(client.sender, update)
}

0 comments on commit 640c5c3

Please sign in to comment.