Skip to content

Commit

Permalink
fixed innefectual assignment to err
Browse files Browse the repository at this point in the history
  • Loading branch information
andreburgaud committed Aug 24, 2024
1 parent a7e2ac7 commit b5bee92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecb/ecb_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ func TestECBDecrypterAESPanic(t *testing.T) {
}
}()
key := []byte("AES256Key-32Characters1234567890")
ciphertext, err := hex.DecodeString("717FADE7B97198A8C2F67766FBAC7B") // correct value was "717FADE7B97198A8C2F67766FBAC7B07" (1 byte missing => should panic)

ciphertext, _ := hex.DecodeString("717FADE7B97198A8C2F67766FBAC7B") // correct value was "717FADE7B97198A8C2F67766FBAC7B07" (1 byte missing => should panic)
c, err := aes.NewCipher(key)
if err != nil {
t.Fatalf("NewCipher(%d bytes) = %s", len(key), err)
Expand Down

0 comments on commit b5bee92

Please sign in to comment.