Skip to content

Commit 41ed0a6

Browse files
committed
fix: data race
1 parent b19e9db commit 41ed0a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/oidc/oidc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func withServer(t *testing.T, fn func(m *mockoidc.MockOIDC, storage *sqlstorage.
7474

7575
// As our oidc provider, is also a relying party (it delegates authentication), we need to construct a relying party
7676
// with information from the mock
77-
cl := http.DefaultClient
77+
cl := &http.Client{}
7878
cl.Transport = RoundTripper{http.DefaultTransport}
7979
serverRelyingParty, err := rp.NewRelyingPartyOIDC(mockOIDC.Issuer(), mockOIDC.ClientID, mockOIDC.ClientSecret,
8080
fmt.Sprintf("%s/authorize/callback", serverUrl), []string{"openid", "email"}, rp.WithHTTPClient(cl))

0 commit comments

Comments
 (0)