Merge pull request #17588 from ah8ad3/fix-flaky-jwt

flaky: fix jwt test with increasing ttl
This commit is contained in:
Benjamin Wang 2024-03-24 16:48:49 +00:00 committed by GitHub
commit 5a53a708d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ func NewConfigJWT() *EtcdProcessClusterConfig {
return NewConfig(
WithClusterSize(1),
WithAuthTokenOpts("jwt,pub-key="+path.Join(FixturesDir, "server.crt")+
",priv-key="+path.Join(FixturesDir, "server.key.insecure")+",sign-method=RS256,ttl=1s"),
",priv-key="+path.Join(FixturesDir, "server.key.insecure")+",sign-method=RS256,ttl=5s"),
)
}