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

Commit

Permalink
Revert "In ipam ring unit test, check if we have any peers with entri…
Browse files Browse the repository at this point in the history
…es to avoid crash "
  • Loading branch information
tomwilkie committed Aug 20, 2015
1 parent aafa0f6 commit 790a175
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ipam/ring/ring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 790a175

Please sign in to comment.