diff --git a/src/sharedrecords_test.go b/src/sharedrecords_test.go index a05817f..20dd8ff 100644 --- a/src/sharedrecords_test.go +++ b/src/sharedrecords_test.go @@ -71,12 +71,11 @@ func TestCreateSharedRecordFakeUser(t *testing.T) { func TestCreateSharedRecordBadInput(t *testing.T) { userTOKEN, _ := uuid.GenerateUUID() - data := `{"expiration":"1d","fields":"name","app":"ju!nk"}` raw, _ := helpCreateSharedRecord("token", userTOKEN, "a=b") if _, ok := raw["status"]; ok && raw["status"].(string) == "ok" { t.Fatalf("Should failed to create shared record for fake user") } - data = `{"expiration":"1d","fields":"uuid,name,pass,k1"}` + data := `{"expiration":"1d","fields":"uuid,name,pass,k1"}` raw, _ = helpCreateSharedRecord("token", userTOKEN, "a=b") if _, ok := raw["status"]; ok && raw["status"].(string) == "ok" { t.Fatalf("Should failed to create shared record for fake user")