aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorCorey Lin <514971757@qq.com>2018-11-07 19:22:31 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-07 19:22:31 +0800
commit0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7 (patch)
treef0b34b628e3b14acd60fe0241dea72f0a1f5d39e /p2p
parent80e2f3aca42583856669372cfc636cb7fd370fdb (diff)
downloaddexon-0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7.tar
dexon-0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7.tar.gz
dexon-0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7.tar.bz2
dexon-0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7.tar.lz
dexon-0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7.tar.xz
dexon-0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7.tar.zst
dexon-0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7.zip
p2p/protocols: use keyed fields for struct instantiation (#18017)
Diffstat (limited to 'p2p')
-rw-r--r--p2p/protocols/protocol_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/protocols/protocol_test.go b/p2p/protocols/protocol_test.go
index 2874af48d..a26222cd8 100644
--- a/p2p/protocols/protocol_test.go
+++ b/p2p/protocols/protocol_test.go
@@ -318,7 +318,7 @@ func TestProtocolHook(t *testing.T) {
<-testHook.waitC
time.Sleep(100 * time.Millisecond)
- err = tester.TestDisconnected(&p2ptest.Disconnect{tester.Nodes[1].ID(), testHook.err})
+ err = tester.TestDisconnected(&p2ptest.Disconnect{Peer: tester.Nodes[1].ID(), Error: testHook.err})
if err != nil {
t.Fatalf("Expected a specific disconnect error, but got different one: %v", err)
}