Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5add72 commit 0fd2ea4Copy full SHA for 0fd2ea4
coderd/rbac/authz_internal_test.go
@@ -249,15 +249,16 @@ func TestFilter(t *testing.T) {
249
localObjects := make([]fakeObject, len(objects))
250
copy(localObjects, objects)
251
252
- ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
253
- defer cancel()
254
auth := NewAuthorizer(prometheus.NewRegistry())
255
256
if actor.Scope == nil {
257
// Default to ScopeAll
258
actor.Scope = ScopeAll
259
}
260
+ ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
+ defer cancel()
261
+
262
// Run auth 1 by 1
263
var allowedCount int
264
for i, obj := range localObjects {
0 commit comments