aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/dial_test.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-04-02 19:00:34 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-15 22:09:55 +0800
commitbd0a9ffa31539f43e4deb3aaf6e48a72571253fa (patch)
treef9a3bc278c3077b3378bf40013134dc700fee2dd /p2p/dial_test.go
parent8012e32fb72dc05cfa995d2934569b9411871395 (diff)
downloadgo-tangerine-bd0a9ffa31539f43e4deb3aaf6e48a72571253fa.tar
go-tangerine-bd0a9ffa31539f43e4deb3aaf6e48a72571253fa.tar.gz
go-tangerine-bd0a9ffa31539f43e4deb3aaf6e48a72571253fa.tar.bz2
go-tangerine-bd0a9ffa31539f43e4deb3aaf6e48a72571253fa.tar.lz
go-tangerine-bd0a9ffa31539f43e4deb3aaf6e48a72571253fa.tar.xz
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.go2
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.