Fix tests

This commit is contained in:
mcrakhman 2022-09-08 08:08:33 +02:00 committed by Mikhail Iudin
parent 89715bdca7
commit bf4e4de38c
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0
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
}