From bf4e4de38cb49826fd8fc031e37175136384df7d Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Thu, 8 Sep 2022 08:08:33 +0200 Subject: [PATCH] Fix tests --- pkg/acl/testutils/acllistbuilder/ymlentities_test.go | 12 ------------ service/space/service.go | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 pkg/acl/testutils/acllistbuilder/ymlentities_test.go diff --git a/pkg/acl/testutils/acllistbuilder/ymlentities_test.go b/pkg/acl/testutils/acllistbuilder/ymlentities_test.go deleted file mode 100644 index 29d86d31..00000000 --- a/pkg/acl/testutils/acllistbuilder/ymlentities_test.go +++ /dev/null @@ -1,12 +0,0 @@ -package acllistbuilder - -import ( - "fmt" - "testing" -) - -func Test_YamlParse(t *testing.T) { - tb, _ := NewListStorageWithTestName("userjoinexampleupdate.yml") - gr, _ := tb.Graph() - fmt.Println(gr) -} diff --git a/service/space/service.go b/service/space/service.go index 364ce91d..7b826607 100644 --- a/service/space/service.go +++ b/service/space/service.go @@ -78,7 +78,8 @@ func (s *service) Handle(ctx context.Context, data []byte) (resp proto.Marshaler return } if spaceReq.SpaceId != "" { - sp, err := s.get(ctx, spaceReq.SpaceId) + var sp Space + sp, err = s.get(ctx, spaceReq.SpaceId) if err != nil { return }