mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
eth: increase timeout in TestBroadcastBlock (#18064)
This commit is contained in:
parent
76f5f662cc
commit
b24ef5e05d
@ -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 New Issue
Block a user