diff options
author | Sonic <sonic@dexon.org> | 2019-04-02 19:00:34 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-15 22:09:55 +0800 |
commit | bd0a9ffa31539f43e4deb3aaf6e48a72571253fa (patch) | |
tree | f9a3bc278c3077b3378bf40013134dc700fee2dd /p2p/dial_test.go | |
parent | 8012e32fb72dc05cfa995d2934569b9411871395 (diff) | |
download | go-tangerine-bd0a9ffa31539f43e4deb3aaf6e48a72571253fa.tar.gz go-tangerine-bd0a9ffa31539f43e4deb3aaf6e48a72571253fa.tar.zst go-tangerine-bd0a9ffa31539f43e4deb3aaf6e48a72571253fa.zip |
p2p, p2p/discover: more aggressive dial strategy for direct dial (#326)
* p2p/discover: bump failure counter only if no nodes were provided
* p2p: more aggressive dial strategy for direct dial
Diffstat (limited to 'p2p/dial_test.go')
-rw-r--r-- | p2p/dial_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/dial_test.go b/p2p/dial_test.go index ab687c2ea..84f138899 100644 --- a/p2p/dial_test.go +++ b/p2p/dial_test.go @@ -581,7 +581,7 @@ func TestDialStateDirectDial(t *testing.T) { &dialTask{flags: directDialedConn, dest: newNode(uintID(5), nil)}, }, new: []task{ - &waitExpireTask{Duration: 14 * time.Second}, + &waitExpireTask{Duration: 10 * time.Second}, }, }, // Wait a round for dial history to expire, no new tasks should spawn. |