mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: make 'NoRefresh' honor unlimited tokens in gitauth (#9472)
* chore: fix NoRefresh to honor unlimited tokens * improve testing coverage of gitauth * refactor rest of gitauth tests
This commit is contained in:
@ -365,7 +365,7 @@ func TestUserOIDC(t *testing.T) {
|
||||
|
||||
runner := setupOIDCTest(t, oidcTestConfig{
|
||||
FakeOpts: []oidctest.FakeIDPOpt{
|
||||
oidctest.WithRefreshHook(func(_ string) error {
|
||||
oidctest.WithRefresh(func(_ string) error {
|
||||
// Always "expired" refresh token.
|
||||
return xerrors.New("refresh token is expired")
|
||||
}),
|
||||
|
Reference in New Issue
Block a user