@@ -6009,10 +6009,10 @@ func TestUserSecretsCRUDOperations(t *testing.T) {
6009
6009
6010
6010
// Use raw database without dbauthz wrapper for this test
6011
6011
db , _ := dbtestutil .NewDB (t )
6012
- ctx := testutil .Context (t , testutil .WaitMedium )
6013
6012
6014
6013
t .Run ("FullCRUDWorkflow" , func (t * testing.T ) {
6015
6014
t .Parallel ()
6015
+ ctx := testutil .Context (t , testutil .WaitMedium )
6016
6016
6017
6017
// Create a new user for this test
6018
6018
testUser := dbgen .User (t , db , database.User {})
@@ -6085,6 +6085,7 @@ func TestUserSecretsCRUDOperations(t *testing.T) {
6085
6085
6086
6086
t .Run ("UniqueConstraints" , func (t * testing.T ) {
6087
6087
t .Parallel ()
6088
+ ctx := testutil .Context (t , testutil .WaitMedium )
6088
6089
6089
6090
// Create a new user for this test
6090
6091
testUser := dbgen .User (t , db , database.User {})
@@ -6156,7 +6157,6 @@ func TestUserSecretsAuthorization(t *testing.T) {
6156
6157
db , _ := dbtestutil .NewDB (t )
6157
6158
authorizer := rbac .NewStrictCachingAuthorizer (prometheus .NewRegistry ())
6158
6159
authDB := dbauthz .New (db , authorizer , slogtest .Make (t , & slogtest.Options {}), coderdtest .AccessControlStorePointer ())
6159
- ctx := testutil .Context (t , testutil .WaitMedium )
6160
6160
6161
6161
// Create test users
6162
6162
user1 := dbgen .User (t , db , database.User {})
@@ -6234,6 +6234,7 @@ func TestUserSecretsAuthorization(t *testing.T) {
6234
6234
tc := tc // capture range variable
6235
6235
t .Run (tc .name , func (t * testing.T ) {
6236
6236
t .Parallel ()
6237
+ ctx := testutil .Context (t , testutil .WaitMedium )
6237
6238
6238
6239
authCtx := dbauthz .As (ctx , tc .subject )
6239
6240
0 commit comments