Skip to content

Commit

Permalink
Backport 2.7.3: Make mockClaims expire far into the future (#4547) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrks authored May 6, 2020
1 parent 583d2dc commit 33d352f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func mockClaims() *jose.Claims {
"name": "John Wick",
"aud": audience,
"iat": 1516239022,
"exp": 1586239022,
"exp": 3000000000, // 2065-01-24
"email": "[email protected]"}
return claims
}
Expand Down Expand Up @@ -165,7 +165,7 @@ func TestGetJWTExpiry(t *testing.T) {
{
name: "Test GetJWTExpiry with a good JWT token",
input: mockToken(t),
expiresAt: "2020-04-07 05:57:02 +0000 UTC",
expiresAt: "2065-01-24 05:20:00 +0000 UTC",
expectedErr: "",
},
{
Expand Down

0 comments on commit 33d352f

Please sign in to comment.