From c0b78b0db614806dd52beab43b6a1ff7983a0ac4 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Mon, 15 Apr 2019 14:27:32 +0200 Subject: [PATCH] swarm/network: raise number of peer check attempts in testInitialPeersMsg --- swarm/network/discovery_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/network/discovery_test.go b/swarm/network/discovery_test.go index 1df9fcfea7..cf7ddc4fba 100644 --- a/swarm/network/discovery_test.go +++ b/swarm/network/discovery_test.go @@ -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