mirror of
https://github.com/cloudflare/redoctober.git
synced 2026-09-07 16:47:14 +00:00
Use the correct testing framework and JSON.
This commit is contained in:
@@ -3,9 +3,9 @@ package core
|
||||
import (
|
||||
"os"
|
||||
"encoding/json"
|
||||
"testing"
|
||||
"redoctober/passvault"
|
||||
"redoctober/keycache"
|
||||
"redoctober/testing"
|
||||
)
|
||||
|
||||
func TestCreate(t *testing.T) {
|
||||
@@ -312,7 +312,7 @@ func TestEncryptDecrypt(t *testing.T) {
|
||||
|
||||
|
||||
// decrypt file
|
||||
decryptJson, err := json.Marshal(decrypt{Name:"Alice", Password:"Hello", In:s.Response})
|
||||
decryptJson, err := json.Marshal(decrypt{Name:"Alice", Password:"Hello", Data:s.Response})
|
||||
if err != nil {
|
||||
t.Fatalf("Error in marshalling decryption,", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user