aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/rlpx_test.go
diff options
context:
space:
mode:
authorANOTHEL <anothel1@naver.com>2019-04-10 16:49:02 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-04-10 16:49:02 +0800
commit3fa76298e464345868c29a803eeec66c148c8443 (patch)
treeb2b998817cd8bcdb7516187bdf207c1163934bb2 /p2p/rlpx_test.go
parente4cb7b80d59a4154327ea96f4a040ef18ef90c5b (diff)
downloadgo-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.gz
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.bz2
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.lz
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.xz
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.tar.zst
go-tangerine-3fa76298e464345868c29a803eeec66c148c8443.zip
p2p: remove useless parameter (#19433)
Diffstat (limited to 'p2p/rlpx_test.go')
-rw-r--r--p2p/rlpx_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/p2p/rlpx_test.go b/p2p/rlpx_test.go
index 5d8981802..e62196ff0 100644
--- a/p2p/rlpx_test.go
+++ b/p2p/rlpx_test.go
@@ -222,7 +222,6 @@ func TestProtocolHandshake(t *testing.T) {
}
func TestProtocolHandshakeErrors(t *testing.T) {
- our := &protoHandshake{Version: 3, Caps: []Cap{{"foo", 2}, {"bar", 3}}, Name: "quux"}
tests := []struct {
code uint64
msg interface{}
@@ -258,7 +257,7 @@ func TestProtocolHandshakeErrors(t *testing.T) {
for i, test := range tests {
p1, p2 := MsgPipe()
go Send(p1, test.code, test.msg)
- _, err := readProtocolHandshake(p2, our)
+ _, err := readProtocolHandshake(p2)
if !reflect.DeepEqual(err, test.err) {
t.Errorf("test %d: error mismatch: got %q, want %q", i, err, test.err)
}