aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/dial_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-05-18 18:37:15 +0800
committerFelix Lange <fjl@twurst.com>2016-05-18 18:37:15 +0800
commite27af97a3c1ab83183be2a036fcdfcc4f6f45972 (patch)
tree75fa706a695285a134efc5d3c7ed4a5f497e04b3 /p2p/dial_test.go
parentc8a8ad97f7e8889ca9f3aece7ddb50cce8ef18c7 (diff)
parent542b839ec74ff0ce94ab0d34e25531f5819d95d1 (diff)
downloaddexon-e27af97a3c1ab83183be2a036fcdfcc4f6f45972.tar
dexon-e27af97a3c1ab83183be2a036fcdfcc4f6f45972.tar.gz
dexon-e27af97a3c1ab83183be2a036fcdfcc4f6f45972.tar.bz2
dexon-e27af97a3c1ab83183be2a036fcdfcc4f6f45972.tar.lz
dexon-e27af97a3c1ab83183be2a036fcdfcc4f6f45972.tar.xz
dexon-e27af97a3c1ab83183be2a036fcdfcc4f6f45972.tar.zst
dexon-e27af97a3c1ab83183be2a036fcdfcc4f6f45972.zip
Merge pull request #2580 from fjl/p2p-config
node, p2p: move network config out of Server
Diffstat (limited to 'p2p/dial_test.go')
-rw-r--r--p2p/dial_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/p2p/dial_test.go b/p2p/dial_test.go
index 3447660a3..05d9b7562 100644
--- a/p2p/dial_test.go
+++ b/p2p/dial_test.go
@@ -478,7 +478,8 @@ func TestDialResolve(t *testing.T) {
}
// Now run the task, it should resolve the ID once.
- srv := &Server{ntab: table, Dialer: &net.Dialer{Deadline: time.Now().Add(-5 * time.Minute)}}
+ config := Config{Dialer: &net.Dialer{Deadline: time.Now().Add(-5 * time.Minute)}}
+ srv := &Server{ntab: table, Config: config}
tasks[0].Do(srv)
if !reflect.DeepEqual(table.resolveCalls, []discover.NodeID{dest.ID}) {
t.Fatalf("wrong resolve calls, got %v", table.resolveCalls)