From 196968c0ef688f27590d8aa36bdb87b84d68efa5 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Sun, 27 Aug 2023 19:32:51 +0000 Subject: [PATCH] chore: format oidctest --- coderd/coderdtest/oidctest/idp.go | 2 +- coderd/coderdtest/oidctest/idp_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/coderd/coderdtest/oidctest/idp.go b/coderd/coderdtest/oidctest/idp.go index 912d9acd7c221..3ca8cadbc9ff9 100644 --- a/coderd/coderdtest/oidctest/idp.go +++ b/coderd/coderdtest/oidctest/idp.go @@ -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) } diff --git a/coderd/coderdtest/oidctest/idp_test.go b/coderd/coderdtest/oidctest/idp_test.go index 0dc1149d93fa9..519635b067916 100644 --- a/coderd/coderdtest/oidctest/idp_test.go +++ b/coderd/coderdtest/oidctest/idp_test.go @@ -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.