From 7663e0ef61c4123a66edcd486ac191ec164ed4e5 Mon Sep 17 00:00:00 2001 From: Yuli Date: Fri, 21 Feb 2020 09:52:46 +0200 Subject: [PATCH] fix warning --- src/sharedrecords_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")