From b24ef5e05d158e1533cf339aea866e0584447cef Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 23 Nov 2018 10:14:09 +0100 Subject: eth: increase timeout in TestBroadcastBlock (#18064) --- eth/handler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eth/handler_test.go') diff --git a/eth/handler_test.go b/eth/handler_test.go index 7811cd480..44824fd0b 100644 --- a/eth/handler_test.go +++ b/eth/handler_test.go @@ -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 } } -- cgit v1.2.3