mirror of https://github.com/coder/coder.git
test(coderd/rbac): Increase TestFilter timeout (#7694)
This commit is contained in:
parent
e5add7292f
commit
0fd2ea4044
|
@ -249,8 +249,6 @@ func TestFilter(t *testing.T) {
|
||||||
localObjects := make([]fakeObject, len(objects))
|
localObjects := make([]fakeObject, len(objects))
|
||||||
copy(localObjects, objects)
|
copy(localObjects, objects)
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
|
|
||||||
defer cancel()
|
|
||||||
auth := NewAuthorizer(prometheus.NewRegistry())
|
auth := NewAuthorizer(prometheus.NewRegistry())
|
||||||
|
|
||||||
if actor.Scope == nil {
|
if actor.Scope == nil {
|
||||||
|
@ -258,6 +256,9 @@ func TestFilter(t *testing.T) {
|
||||||
actor.Scope = ScopeAll
|
actor.Scope = ScopeAll
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
|
||||||
|
defer cancel()
|
||||||
|
|
||||||
// Run auth 1 by 1
|
// Run auth 1 by 1
|
||||||
var allowedCount int
|
var allowedCount int
|
||||||
for i, obj := range localObjects {
|
for i, obj := range localObjects {
|
||||||
|
|
Loading…
Reference in New Issue