mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
p2p: fix error comparison in TestProtocolHandshakeErrors
This commit is contained in:
parent
4e49b437e3
commit
574f9027ae
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ func TestProtocolHandshakeErrors(t *testing.T) {
|
||||||
p1, p2 := MsgPipe()
|
p1, p2 := MsgPipe()
|
||||||
go Send(p1, test.code, test.msg)
|
go Send(p1, test.code, test.msg)
|
||||||
_, err := readProtocolHandshake(p2)
|
_, err := readProtocolHandshake(p2)
|
||||||
if !errors.Is(err, test.err) {
|
if err.Error() != test.err.Error() {
|
||||||
t.Errorf("test %d: error mismatch: got %q, want %q", i, err, test.err)
|
t.Errorf("test %d: error mismatch: got %q, want %q", i, err, test.err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue