Skip to content

Commit

Permalink
wire: Display correct RandomUint64 test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Feb 25, 2015
1 parent b334251 commit 859d9a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wire/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 859d9a7

Please sign in to comment.