mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
wire: Display correct RandomUint64 test failures.
This commit is contained in:
parent
b3342510b7
commit
859d9a7520
@ -694,10 +694,10 @@ func TestRandomUint64Errors(t *testing.T) {
|
||||
fr := &fakeRandReader{n: 2, err: io.EOF}
|
||||
nonce, err := wire.TstRandomUint64(fr)
|
||||
if err != io.ErrUnexpectedEOF {
|
||||
t.Errorf("TestRandomUint64Fails: Error not expected value of %v [%v]",
|
||||
io.ErrShortBuffer, err)
|
||||
t.Errorf("Error not expected value of %v [%v]",
|
||||
io.ErrUnexpectedEOF, err)
|
||||
}
|
||||
if nonce != 0 {
|
||||
t.Errorf("TestRandomUint64Fails: nonce is not 0 [%v]", nonce)
|
||||
t.Errorf("Nonce is not 0 [%v]", nonce)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user