Fix tests

This commit is contained in:
mcrakhman 2022-09-08 08:08:33 +02:00
parent 3f284889ac
commit 88bf93a2cc
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B
2 changed files with 2 additions and 13 deletions

View File

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

View File

@ -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
}