From d3635eed77cab23e55f2e814db2cc75e2bec884b Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 18 Apr 2016 14:06:38 +0100 Subject: [PATCH] Need to mock-gossip from the end of the chain --- ipam/allocator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipam/allocator_test.go b/ipam/allocator_test.go index d5f3b932..18055a23 100644 --- a/ipam/allocator_test.go +++ b/ipam/allocator_test.go @@ -319,9 +319,9 @@ func TestTransfer(t *testing.T) { require.True(t, err == nil, "Failed to get address") // simulation of periodic gossip - alloc2.gossip.GossipBroadcast(alloc2.Gossip()) + alloc3.gossip.GossipBroadcast(alloc3.Gossip()) router.Flush() - alloc1.gossip.GossipBroadcast(alloc1.Gossip()) + alloc2.gossip.GossipBroadcast(alloc2.Gossip()) router.Flush() router.RemovePeer(alloc2.ourName)