From 0fe0b8f7b9904767cdd73cf1aac4d7ad543d95a7 Mon Sep 17 00:00:00 2001 From: Corey Lin <514971757@qq.com> Date: Wed, 7 Nov 2018 19:22:31 +0800 Subject: [PATCH] p2p/protocols: use keyed fields for struct instantiation (#18017) --- p2p/protocols/protocol_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/protocols/protocol_test.go b/p2p/protocols/protocol_test.go index 2874af48d2..a26222cd8b 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) }