mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
eth: increase timeout in TestBroadcastBlock
This commit is contained in:
parent
212bf266c5
commit
9c23e4a8ef
1 changed files with 2 additions and 2 deletions
|
|
@ -585,7 +585,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) {
|
|||
}
|
||||
}(peer)
|
||||
}
|
||||
timeoutCh := time.NewTimer(time.Millisecond * 100).C
|
||||
timeout := time.After(300 * time.Millisecond)
|
||||
var receivedCount int
|
||||
outer:
|
||||
for {
|
||||
|
|
@ -597,7 +597,7 @@ outer:
|
|||
if receivedCount == totalPeers {
|
||||
break outer
|
||||
}
|
||||
case <-timeoutCh:
|
||||
case <-timeout:
|
||||
break outer
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue