mirror of
https://github.com/fatedier/frp.git
synced 2024-11-24 02:59:19 +08:00
test: typo
This commit is contained in:
parent
8ed55e1288
commit
5c6f03afcf
@ -25,7 +25,7 @@ func TestEncrypto(t *testing.T) {
|
||||
pp.Init([]byte("Hana"))
|
||||
res, err := pp.Encrypto([]byte("Just One Test!"))
|
||||
if err != nil {
|
||||
t.Fatalf(err)
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
fmt.Printf("[%x]\n", res)
|
||||
@ -36,12 +36,12 @@ func TestDecrypto(t *testing.T) {
|
||||
pp.Init([]byte("Hana"))
|
||||
res, err := pp.Encrypto([]byte("Just One Test!"))
|
||||
if err != nil {
|
||||
t.Fatalf(err)
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
res, err = pp.Decrypto(res)
|
||||
if err != nil {
|
||||
t.Fatalf(err)
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
fmt.Printf("[%s]\n", string(res))
|
||||
|
Loading…
Reference in New Issue
Block a user