Commit b24ef5e0 authored by Felix Lange's avatar Felix Lange Committed by Péter Szilágyi

eth: increase timeout in TestBroadcastBlock (#18064)

parent 76f5f662
...@@ -585,7 +585,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) { ...@@ -585,7 +585,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) {
} }
}(peer) }(peer)
} }
timeoutCh := time.NewTimer(time.Millisecond * 100).C timeout := time.After(300 * time.Millisecond)
var receivedCount int var receivedCount int
outer: outer:
for { for {
...@@ -597,7 +597,7 @@ outer: ...@@ -597,7 +597,7 @@ outer:
if receivedCount == totalPeers { if receivedCount == totalPeers {
break outer break outer
} }
case <-timeoutCh: case <-timeout:
break outer break outer
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment