mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
cmd/devp2p/internal/v5test: fix challenge data mismatch error
Label the actual and expected challenge data values in the WHOAREYOU resend test failure. This makes the diagnostic clear when the resent ChallengeData does not match the original challenge.
This commit is contained in:
parent
1f87331fbc
commit
84e44f2607
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ func (s *Suite) TestHandshakeResend(t *utesting.T) {
|
||||||
t.Fatalf("wrong nonce %x in WHOAREYOU (want %x)", resp.Nonce[:], challenge1.Nonce[:])
|
t.Fatalf("wrong nonce %x in WHOAREYOU (want %x)", resp.Nonce[:], challenge1.Nonce[:])
|
||||||
}
|
}
|
||||||
if !bytes.Equal(resp.ChallengeData, challenge1.ChallengeData) {
|
if !bytes.Equal(resp.ChallengeData, challenge1.ChallengeData) {
|
||||||
t.Fatalf("wrong ChallengeData in resent WHOAREYOU (want %x)", resp.ChallengeData, challenge1.ChallengeData)
|
t.Fatalf("wrong ChallengeData in resent WHOAREYOU: got %x, want %x", resp.ChallengeData, challenge1.ChallengeData)
|
||||||
}
|
}
|
||||||
resp.Node = conn.remote
|
resp.Node = conn.remote
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue