Skip to content

Commit f5eacd0

Browse files
committed
Benmark Partials
1 parent 6cdf575 commit f5eacd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/rbac/builtin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func BenchmarkRBACFilter(b *testing.B) {
7575
b.Run(c.Name, func(b *testing.B) {
7676
objects := benchmarkSetup(orgs, users, b.N)
7777
b.ResetTimer()
78-
allowed := rbac.Filter(context.Background(), authorizer, c.UserID.String(), c.Roles, rbac.ActionRead, objects)
78+
allowed := rbac.FilterPart(context.Background(), authorizer, c.UserID.String(), c.Roles, rbac.ActionRead, objects[0].Type, objects)
7979
var _ = allowed
8080
})
8181
}

0 commit comments

Comments
 (0)