diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2018-11-23 17:14:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-11-23 17:14:09 +0800 |
commit | b24ef5e05d158e1533cf339aea866e0584447cef (patch) | |
tree | 15d6471093749aa17a5c1a07f75341dbce645c16 /eth | |
parent | 76f5f662ccaf5190eb283ab8b5d607587e1ab8f9 (diff) | |
download | dexon-b24ef5e05d158e1533cf339aea866e0584447cef.tar.gz dexon-b24ef5e05d158e1533cf339aea866e0584447cef.tar.zst dexon-b24ef5e05d158e1533cf339aea866e0584447cef.zip |
eth: increase timeout in TestBroadcastBlock (#18064)
Diffstat (limited to 'eth')
-rw-r--r-- | eth/handler_test.go | 4 |
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 } } |