Skip to content

Commit 06a3fea

Browse files
mafredriammario
authored andcommitted
test(coderd/rbac): Increase TestFilter timeout (coder#7694)
1 parent 3fc6797 commit 06a3fea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

coderd/rbac/authz_internal_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,16 @@ func TestFilter(t *testing.T) {
249249
localObjects := make([]fakeObject, len(objects))
250250
copy(localObjects, objects)
251251

252-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
253-
defer cancel()
254252
auth := NewAuthorizer(prometheus.NewRegistry())
255253

256254
if actor.Scope == nil {
257255
// Default to ScopeAll
258256
actor.Scope = ScopeAll
259257
}
260258

259+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
260+
defer cancel()
261+
261262
// Run auth 1 by 1
262263
var allowedCount int
263264
for i, obj := range localObjects {

0 commit comments

Comments
 (0)