We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent3349b11 commit1ea0af3Copy full SHA for 1ea0af3
coderd/promoauth/oauth2_test.go
@@ -59,10 +59,9 @@ func TestInstrument(t *testing.T) {
59
// Verify the default client was not broken. This check is added because we
60
// extend the http.DefaultTransport. If a `.Clone()` is not done, this can be
61
// mis-used. It is cheap to run this quick check.
62
-req,err:=http.NewRequest(http.MethodGet,
+req,err:=http.NewRequestWithContext(ctx,http.MethodGet,
63
must(idp.IssuerURL().Parse("/.well-known/openid-configuration")).String(),nil)
64
require.NoError(t,err)
65
-req=req.WithContext(ctx)
66
67
resp,err:=http.DefaultClient.Do(req)
68