mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
This PR fixes a flaky jwt-test. The test is a jwt "from one second in the future". The test passes; the reason for this is that the CI-system is slow, and by the time the jwt is actually evaluated, that second has passed, and it's no longer future. Alternative to #30380 Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
parent
cf99bd07ff
commit
42f49e3e20
1 changed files with 1 additions and 1 deletions
|
|
@ -306,7 +306,7 @@ func TestJWT(t *testing.T) {
|
||||||
expFail := []func() string{
|
expFail := []func() string{
|
||||||
// future
|
// future
|
||||||
func() string {
|
func() string {
|
||||||
return fmt.Sprintf("Bearer %v", issueToken(secret, nil, testClaim{"iat": time.Now().Unix() + int64(jwtExpiryTimeout.Seconds()) + 1}))
|
return fmt.Sprintf("Bearer %v", issueToken(secret, nil, testClaim{"iat": time.Now().Unix() + int64(jwtExpiryTimeout.Seconds()) + 60}))
|
||||||
},
|
},
|
||||||
// stale
|
// stale
|
||||||
func() string {
|
func() string {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue