mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: format oidctest (#9362)
This commit is contained in:
@ -663,7 +663,7 @@ func (f *FakeIDP) HTTPClient(rest *http.Client) *http.Client {
|
||||
return f.fakeCoderd(req)
|
||||
}
|
||||
if rest == nil || rest.Transport == nil {
|
||||
return nil, fmt.Errorf("unexpected network request to %q", req.URL.Host)
|
||||
return nil, xerrors.Errorf("unexpected network request to %q", req.URL.Host)
|
||||
}
|
||||
return rest.Transport.RoundTrip(req)
|
||||
}
|
||||
|
@ -10,10 +10,11 @@ import (
|
||||
"github.com/golang-jwt/jwt/v4"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/coder/coder/v2/coderd/coderdtest/oidctest"
|
||||
"github.com/coreos/go-oidc/v3/oidc"
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/oauth2"
|
||||
|
||||
"github.com/coder/coder/v2/coderd/coderdtest/oidctest"
|
||||
)
|
||||
|
||||
// TestFakeIDPBasicFlow tests the basic flow of the fake IDP.
|
||||
|
Reference in New Issue
Block a user