Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ea0af3

Browse files
committed
Use req with context
1 parent3349b11 commit1ea0af3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎coderd/promoauth/oauth2_test.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ func TestInstrument(t *testing.T) {
5959
// Verify the default client was not broken. This check is added because we
6060
// extend the http.DefaultTransport. If a `.Clone()` is not done, this can be
6161
// mis-used. It is cheap to run this quick check.
62-
req,err:=http.NewRequest(http.MethodGet,
62+
req,err:=http.NewRequestWithContext(ctx,http.MethodGet,
6363
must(idp.IssuerURL().Parse("/.well-known/openid-configuration")).String(),nil)
6464
require.NoError(t,err)
65-
req=req.WithContext(ctx)
6665

6766
resp,err:=http.DefaultClient.Do(req)
6867
require.NoError(t,err)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp