8000 fixup · coder/coder@52139f7 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 52139f7

Browse files
committed
fixup
1 parent 6ef27fc commit 52139f7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

coderd/coderdtest/oidctest/helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ func OAuth2GetCode(authURL string, state string, doRequest func(req *http.Reques
139139
if err != nil {
140140
return "", xerrors.Errorf("request: %w", err)
141141
}
142+
defer resp.Body.Close()
142143

143144
if resp.StatusCode != expCode {
144145
return "", codersdk.ReadBodyAsError(resp)

enterprise/coderd/oauth2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ func TestOAuth2ProviderRevoke(t *testing.T) {
730730
Scopes: []string{},
731731
}
732732

733-
code, err := authorizationFlow(client, cfg)
733+
code, err := authorizationFlow(testClient, cfg)
734734
require.NoError(t, err)
735735

736736
return exchangeSetup{

0 commit comments

Comments
 (0)
0