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

Commit594a6aa

Browse files
authored
chore: format oidctest (#9362)
1 parent6ba92ef commit594a6aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎coderd/coderdtest/oidctest/idp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ func (f *FakeIDP) HTTPClient(rest *http.Client) *http.Client {
663663
returnf.fakeCoderd(req)
664664
}
665665
ifrest==nil||rest.Transport==nil {
666-
returnnil,fmt.Errorf("unexpected network request to %q",req.URL.Host)
666+
returnnil,xerrors.Errorf("unexpected network request to %q",req.URL.Host)
667667
}
668668
returnrest.Transport.RoundTrip(req)
669669
}

‎coderd/coderdtest/oidctest/idp_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ import (
1010
"github.com/golang-jwt/jwt/v4"
1111
"github.com/stretchr/testify/assert"
1212

13-
"github.com/coder/coder/v2/coderd/coderdtest/oidctest"
1413
"github.com/coreos/go-oidc/v3/oidc"
1514
"github.com/stretchr/testify/require"
1615
"golang.org/x/oauth2"
16+
17+
"github.com/coder/coder/v2/coderd/coderdtest/oidctest"
1718
)
1819

1920
// TestFakeIDPBasicFlow tests the basic flow of the fake IDP.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp