swarm/network: raise number of peer check attempts in testInitialPeersMsg

This commit is contained in:
Janos Guljas 2019-04-15 14:27:32 +02:00
parent 774540fe2b
commit c0b78b0db6

View file

@ -160,7 +160,7 @@ func testInitialPeersMsg(t *testing.T, peerPO, peerDepth int) {
peerID := s.Nodes[0].ID()
// block until control peer is found among hive peers
found := false
for attempts := 0; attempts < 20; attempts++ {
for attempts := 0; attempts < 2000; attempts++ {
found = hive.Peer(peerID) != nil
if found {
break