Use the correct testing framework and JSON.

This commit is contained in:
Nick Sullivan
2013-11-19 09:56:38 -08:00
parent 4e1aa78fb8
commit 897abdfb59
+2 -2
View File
@@ -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)
}