Skip to content

Commit

Permalink
use t.Fatal instead of panic
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Sep 29, 2024
1 parent c52d888 commit ace0e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cng/aes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func TestAESBlockMode(t *testing.T) {

block, err := NewAESCipher(key)
if err != nil {
panic(err)
t.Fatal(err)
}

cryptotest.TestBlockMode(t, block, cipher.NewCBCEncrypter, cipher.NewCBCDecrypter)
Expand Down

0 comments on commit ace0e9b

Please sign in to comment.