aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2018-11-23 17:14:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-23 17:14:09 +0800
commitb24ef5e05d158e1533cf339aea866e0584447cef (patch)
tree15d6471093749aa17a5c1a07f75341dbce645c16 /eth
parent76f5f662ccaf5190eb283ab8b5d607587e1ab8f9 (diff)
downloadgo-tangerine-b24ef5e05d158e1533cf339aea866e0584447cef.tar
go-tangerine-b24ef5e05d158e1533cf339aea866e0584447cef.tar.gz
go-tangerine-b24ef5e05d158e1533cf339aea866e0584447cef.tar.bz2
go-tangerine-b24ef5e05d158e1533cf339aea866e0584447cef.tar.lz
go-tangerine-b24ef5e05d158e1533cf339aea866e0584447cef.tar.xz
go-tangerine-b24ef5e05d158e1533cf339aea866e0584447cef.tar.zst
go-tangerine-b24ef5e05d158e1533cf339aea866e0584447cef.zip
eth: increase timeout in TestBroadcastBlock (#18064)
Diffstat (limited to 'eth')
-rw-r--r--eth/handler_test.go4
1 files changed, 2 insertions, 2 deletions
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
}
}