From 790a1757e0513297519277d92aa61589f9fe9ae7 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 20 Aug 2015 12:18:34 +0100 Subject: [PATCH] Revert "In ipam ring unit test, check if we have any peers with entries to avoid crash " --- ipam/ring/ring_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/ipam/ring/ring_test.go b/ipam/ring/ring_test.go index f25de566..c9ab789b 100644 --- a/ipam/ring/ring_test.go +++ b/ipam/ring/ring_test.go @@ -709,9 +709,6 @@ func TestFuzzRingHard(t *testing.T) { ringsWithEntries = append(ringsWithEntries, ring) } } - if len(ringsWithEntries) == 0 { // no rings have entries. - return - } ring1 := ringsWithEntries[rand.Intn(len(ringsWithEntries))] ring2index, _, ring2 := randomPeer(-1) common.Log.Debugf("%s: 'Gossiping' to %s", ring1.Peer, ring2.Peer)