mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
fixing TestServerSetupConn
We can't pass errProtoHandshakeError here, because the framework uses `Is` for testing, and that would need `As`. We can however test how it works for internal errors, which is the most typical case. Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
b7626f02ab
commit
f724db56a3
1 changed files with 2 additions and 2 deletions
|
|
@ -410,11 +410,11 @@ func TestServerSetupConn(t *testing.T) {
|
|||
wantCloseErr: DiscUnexpectedIdentity,
|
||||
},
|
||||
{
|
||||
tt: &setupTransport{pubkey: clientpub, protoHandshakeErr: errProtoHandshakeError},
|
||||
tt: &setupTransport{pubkey: clientpub, protoHandshakeErr: DiscTooManyPeers},
|
||||
dialDest: enode.NewV4(clientpub, nil, 0, 0),
|
||||
flags: dynDialedConn,
|
||||
wantCalls: "doEncHandshake,doProtoHandshake,close,",
|
||||
wantCloseErr: errProtoHandshakeError,
|
||||
wantCloseErr: DiscTooManyPeers,
|
||||
},
|
||||
{
|
||||
tt: &setupTransport{pubkey: srvpub, phs: protoHandshake{ID: crypto.FromECDSAPub(srvpub)[1:]}},
|
||||
|
|
|
|||
Loading…
Reference in a new issue