mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network: raise number of peer check attempts in testInitialPeersMsg
This commit is contained in:
parent
774540fe2b
commit
c0b78b0db6
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ func testInitialPeersMsg(t *testing.T, peerPO, peerDepth int) {
|
||||||
peerID := s.Nodes[0].ID()
|
peerID := s.Nodes[0].ID()
|
||||||
// block until control peer is found among hive peers
|
// block until control peer is found among hive peers
|
||||||
found := false
|
found := false
|
||||||
for attempts := 0; attempts < 20; attempts++ {
|
for attempts := 0; attempts < 2000; attempts++ {
|
||||||
found = hive.Peer(peerID) != nil
|
found = hive.Peer(peerID) != nil
|
||||||
if found {
|
if found {
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue