node: fix flaky jwt-test

This commit is contained in:
Martin Holst Swende 2024-09-04 11:13:36 +02:00
parent 922eb033d3
commit 09b0064eb0
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -383,7 +383,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 {