fix warning

This commit is contained in:
Yuli
2020-02-21 09:52:46 +02:00
parent 54d0a97815
commit 7663e0ef61

View File

@@ -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")