aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/dial_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-05-18 17:31:00 +0800
committerFelix Lange <fjl@twurst.com>2016-05-18 18:19:04 +0800
commit542b839ec74ff0ce94ab0d34e25531f5819d95d1 (patch)
tree75fa706a695285a134efc5d3c7ed4a5f497e04b3 /p2p/dial_test.go
parentc8a8ad97f7e8889ca9f3aece7ddb50cce8ef18c7 (diff)
downloaddexon-542b839ec74ff0ce94ab0d34e25531f5819d95d1.tar.gz
dexon-542b839ec74ff0ce94ab0d34e25531f5819d95d1.tar.zst
dexon-542b839ec74ff0ce94ab0d34e25531f5819d95d1.zip
node, p2p: move network config out of Server
This silences a go vet message about copying p2p.Server in package node.
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)