mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
protocol_test.go: enhance unkeyed fields for struct instantiation
This commit is contained in:
parent
f08f596a37
commit
52c1b04203
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue