Skip to content

Commit

Permalink
Update aes_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
showurl committed Feb 24, 2023
1 parent 805cd9f commit a54e318
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/utils/xaes/aes_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package xaes

import (
"gotest.tools/v3/assert"
"testing"
)

Expand All @@ -10,8 +11,6 @@ func TestEncrypt(t *testing.T) {
bytes, _ := Decrypt([]byte("iv"), []byte("key"), encryptBytes)
t.Log(string(bytes))
bytes, err := Decrypt([]byte("iv"), []byte("key"), []byte("data"))
if err != nil {
t.Fatalf("decrypt error: %v", err)
}
assert.Assert(t, err != nil, "err should not be nil")
t.Log(string(bytes))
}

0 comments on commit a54e318

Please sign in to comment.