7
7
"testing"
8
8
9
9
"github.com/stretchr/testify/require"
10
- "go.uber.org/goleak"
11
10
12
11
"github.com/authzed/spicedb/internal/datastore/common"
13
12
"github.com/authzed/spicedb/internal/datastore/memdb"
@@ -30,7 +29,7 @@ import (
30
29
var ONR = tuple .ObjectAndRelation
31
30
32
31
func TestSimpleCheck (t * testing.T ) {
33
- defer goleak . VerifyNone ( t , append ( testutil . GoLeakIgnores (), goleak . IgnoreCurrent ()) ... )
32
+ t . Parallel ( )
34
33
35
34
type expected struct {
36
35
relation string
@@ -119,6 +118,7 @@ func TestSimpleCheck(t *testing.T) {
119
118
userset := userset
120
119
expected := expected
121
120
t .Run (name , func (t * testing.T ) {
121
+ t .Parallel ()
122
122
require := require .New (t )
123
123
124
124
ctx , dispatch , revision := newLocalDispatcher (t )
@@ -150,6 +150,7 @@ func TestSimpleCheck(t *testing.T) {
150
150
}
151
151
152
152
func TestMaxDepth (t * testing.T ) {
153
+ t .Parallel ()
153
154
require := require .New (t )
154
155
155
156
rawDS , err := memdb .NewMemdbDatastore (0 , 0 , memdb .DisableGC )
@@ -182,6 +183,7 @@ func TestMaxDepth(t *testing.T) {
182
183
}
183
184
184
185
func TestCheckMetadata (t * testing.T ) {
186
+ t .Parallel ()
185
187
type expected struct {
186
188
relation string
187
189
isMember bool
@@ -287,6 +289,7 @@ func TestCheckMetadata(t *testing.T) {
287
289
}
288
290
289
291
func TestCheckPermissionOverSchema (t * testing.T ) {
292
+ t .Parallel ()
290
293
testCases := []struct {
291
294
name string
292
295
schema string
@@ -1370,6 +1373,7 @@ func addFrame(trace *v1.CheckDebugTrace, foundFrames *mapz.Set[string]) {
1370
1373
}
1371
1374
1372
1375
func TestCheckDebugging (t * testing.T ) {
1376
+ t .Parallel ()
1373
1377
type expectedFrame struct {
1374
1378
resourceType * core.RelationReference
1375
1379
resourceIDs []string
@@ -1482,6 +1486,7 @@ func TestCheckDebugging(t *testing.T) {
1482
1486
}
1483
1487
1484
1488
func TestCheckWithHints (t * testing.T ) {
1489
+ t .Parallel ()
1485
1490
testCases := []struct {
1486
1491
name string
1487
1492
schema string
@@ -1853,6 +1858,7 @@ func TestCheckWithHints(t *testing.T) {
1853
1858
}
1854
1859
1855
1860
func TestCheckHintsPartialApplication (t * testing.T ) {
1861
+ t .Parallel ()
1856
1862
require := require .New (t )
1857
1863
1858
1864
dispatcher := NewLocalOnlyDispatcher (10 , 100 )
@@ -1898,6 +1904,7 @@ func TestCheckHintsPartialApplication(t *testing.T) {
1898
1904
}
1899
1905
1900
1906
func TestCheckHintsPartialApplicationOverArrow (t * testing.T ) {
1907
+ t .Parallel ()
1901
1908
require := require .New (t )
1902
1909
1903
1910
dispatcher := NewLocalOnlyDispatcher (10 , 100 )
0 commit comments