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@dexon.org>2019-04-09 21:32:59 +0800
commit66c5de46f2a18aae704b11059ee55c4ca3b21bd4 (patch)
tree66b550cf3c813ff278535b715076865400511a6f /p2p/dial_test.go
parent37257d9e7981661d3f19eae5ea5d49bcedea3698 (diff)
downloaddexon-66c5de46f2a18aae704b11059ee55c4ca3b21bd4.tar.gz
dexon-66c5de46f2a18aae704b11059ee55c4ca3b21bd4.tar.zst
dexon-66c5de46f2a18aae704b11059ee55c4ca3b21bd4.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.