Skip to content

Commit

Permalink
stop using %w in testing errors (#8241)
Browse files Browse the repository at this point in the history
  • Loading branch information
williambanfield authored Apr 1, 2022
1 parent 06e8620 commit 66b1a3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crypto/xchacha20poly1305/xchachapoly_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ func TestRandom(t *testing.T) {
plaintext := make([]byte, pl)
_, err := cr.Read(key[:])
if err != nil {
t.Errorf("error on read: %w", err)
t.Errorf("error on read: %v", err)
}
_, err = cr.Read(nonce[:])
if err != nil {
t.Errorf("error on read: %w", err)
t.Errorf("error on read: %v", err)
}
_, err = cr.Read(ad)
if err != nil {
t.Errorf("error on read: %w", err)
t.Errorf("error on read: %v", err)
}
_, err = cr.Read(plaintext)
if err != nil {
t.Errorf("error on read: %w", err)
t.Errorf("error on read: %v", err)
}

aead, err := New(key[:])
Expand Down

0 comments on commit 66b1a3e

Please sign in to comment.