Skip to content

Commit

Permalink
remove t_ prefix from test data
Browse files Browse the repository at this point in the history
  • Loading branch information
akoserwal committed Oct 4, 2024
1 parent 8653913 commit f3b7cfd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/data/spicedb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ func (m *MockgRPCClientStream) CloseAndRecv() (*apiV1beta1.ImportBulkTuplesRespo

func TestImportBulkTuples(t *testing.T) {
rels := []*apiV1beta1.Relationship{
createRelationship("rbac", "group", "bob_club", "t_member", "rbac", "user", "bob5", ""),
createRelationship("rbac", "group", "bob_club", "t_member", "rbac", "user", "bob3", ""),
createRelationship("rbac", "group", "bob_club", "t_member", "rbac", "user", "bob6", ""),
createRelationship("rbac", "group", "bob_club", "t_member", "rbac", "user", "bob9", ""),
createRelationship("rbac", "group", "bob_club", "member", "rbac", "user", "bob5", ""),
createRelationship("rbac", "group", "bob_club", "member", "rbac", "user", "bob3", ""),
createRelationship("rbac", "group", "bob_club", "member", "rbac", "user", "bob6", ""),
createRelationship("rbac", "group", "bob_club", "member", "rbac", "user", "bob9", ""),
}

mockgRPCClientStream := new(MockgRPCClientStream)
Expand All @@ -253,7 +253,7 @@ func TestImportBulkTuples(t *testing.T) {
assert.NoError(t, err)
container.WaitForQuantizationInterval()

exists := CheckForRelationship(spiceDbRepo, "bob5", "rbac", "user", "", "t_member", "rbac", "group", "bob_club")
exists := CheckForRelationship(spiceDbRepo, "bob5", "rbac", "user", "", "member", "rbac", "group", "bob_club")
assert.True(t, exists)
}

Expand Down

0 comments on commit f3b7cfd

Please sign in to comment.