flaky: fix jwt test with increasing ttl

Signed-off-by: ah8ad3 <ah8ad3@gmail.com>
This commit is contained in:
ah8ad3 2024-03-16 09:51:44 +03:30
parent ddf54715bf
commit 71f7db50e7

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"),
)
}