Skip to content

Commit b24ef5e

Browse files
fjlkaralabe
authored andcommitted
eth: increase timeout in TestBroadcastBlock (#18064)
1 parent 76f5f66 commit b24ef5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎eth/handler_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) {
585585
}
586586
}(peer)
587587
}
588-
timeoutCh := time.NewTimer(time.Millisecond * 100).C
588+
timeout := time.After(300 * time.Millisecond)
589589
var receivedCount int
590590
outer:
591591
for {
@@ -597,7 +597,7 @@ outer:
597597
if receivedCount == totalPeers {
598598
break outer
599599
}
600-
case <-timeoutCh:
600+
case <-timeout:
601601
break outer
602602
}
603603
}

0 commit comments

Comments
 (0)