@@ -271,25 +271,26 @@ func TestOAuthAppSecrets(t *testing.T) {
271
271
},
272
272
}})
273
273
274
- ctx := testutil .Context (t , testutil .WaitLong )
274
+ topCtx := testutil .Context (t , testutil .WaitLong )
275
275
276
276
// Make some apps.
277
277
//nolint:gocritic // OAauth2 app management requires owner permission.
278
- app1 , err := client .PostOAuth2ProviderApp (ctx , codersdk.PostOAuth2ProviderAppRequest {
278
+ app1 , err := client .PostOAuth2ProviderApp (topCtx , codersdk.PostOAuth2ProviderAppRequest {
279
279
Name : "razzle-dazzle" ,
280
280
CallbackURL : "http://localhost" ,
281
281
})
282
282
require .NoError (t , err )
283
283
284
284
//nolint:gocritic // OAauth2 app management requires owner permission.
285
- app2 , err := client .PostOAuth2ProviderApp (ctx , codersdk.PostOAuth2ProviderAppRequest {
285
+ app2 , err := client .PostOAuth2ProviderApp (topCtx , codersdk.PostOAuth2ProviderAppRequest {
286
286
Name : "razzle-dazzle-the-sequel" ,
287
287
CallbackURL : "http://localhost" ,
288
288
})
289
289
require .NoError (t , err )
290
290
291
291
t .Run ("DeleteNonExisting" , func (t * testing.T ) {
292
292
t .Parallel ()
293
+ ctx := testutil .Context (t , testutil .WaitLong )
293
294
294
295
// Should not be able to create secrets for a non-existent app.
295
296
//nolint:gocritic // OAauth2 app management requires owner permission.
@@ -318,6 +319,7 @@ func TestOAuthAppSecrets(t *testing.T) {
318
319
319
320
t .Run ("OK" , func (t * testing.T ) {
320
321
t .Parallel ()
322
+ ctx := testutil .Context (t , testutil .WaitLong )
321
323
322
324
// No secrets yet.
323
325
//nolint:gocritic // OAauth2 app management requires owner permission.
0 commit comments