Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 12, 2024
1 parent b03e880 commit 6aac1b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 279 deletions.
9 changes: 5 additions & 4 deletions oauth2/oauth2_auth_code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ func TestAuthCodeWithDefaultStrategy(t *testing.T) {
assert.True(t, time.Now().After(time.Unix(claims.Get("nbf").Int(), 0)), "%s", claims)
assert.True(t, time.Now().Before(time.Unix(claims.Get("exp").Int(), 0)), "%s", claims)
if !expectedExp.IsZero() {
requirex.EqualTime(t, expectedExp, time.Unix(claims.Get("exp").Int(), 0), 1*time.Second)
// 1.5s due to rounding
requirex.EqualTime(t, expectedExp, time.Unix(claims.Get("exp").Int(), 0), 1*time.Second+500*time.Millisecond)
}
assert.NotEmpty(t, claims.Get("jti").String(), "%s", claims)
assert.EqualValues(t, reg.Config().IssuerURL(ctx).String(), claims.Get("iss").String(), "%s", claims)
Expand Down Expand Up @@ -2274,9 +2275,9 @@ func withScope(scope string) func(*client.Client) {
func newOAuth2Client(
t *testing.T,
reg interface {
config.Provider
client.Registry
},
config.Provider
client.Registry
},
callbackURL string,
opts ...func(*client.Client),
) (*client.Client, *oauth2.Config) {
Expand Down
275 changes: 0 additions & 275 deletions oauth2/oauth2_refresh_token_test.go

This file was deleted.

0 comments on commit 6aac1b3

Please sign in to comment.