Fix tests

This commit is contained in:
mcrakhman authored and Mikhail Iudin committed 2022-09-08 08:08:33 +02:00
1 parent 89715bdca7
commit bf4e4de38c
2 files changed
+2 -13

No files matched your search

@@ -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)
}
+2 -1
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
}