From 0fd2ea404432be64c891bebc496b6b5c4dd885ab Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Fri, 26 May 2023 15:44:05 +0300 Subject: [PATCH] test(coderd/rbac): Increase TestFilter timeout (#7694) --- coderd/rbac/authz_internal_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coderd/rbac/authz_internal_test.go b/coderd/rbac/authz_internal_test.go index ad4e180775..6211aafd44 100644 --- a/coderd/rbac/authz_internal_test.go +++ b/coderd/rbac/authz_internal_test.go @@ -249,8 +249,6 @@ func TestFilter(t *testing.T) { localObjects := make([]fakeObject, len(objects)) copy(localObjects, objects) - ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium) - defer cancel() auth := NewAuthorizer(prometheus.NewRegistry()) if actor.Scope == nil { @@ -258,6 +256,9 @@ func TestFilter(t *testing.T) { actor.Scope = ScopeAll } + ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong) + defer cancel() + // Run auth 1 by 1 var allowedCount int for i, obj := range localObjects {