add mocks for GossipNeighbourSubset
This commit is contained in:
1 parent
3780ce4dfb
commit
640c5c346c
2 files changed
+7
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user