Remove the unused AuthTokenTTL parameter from integration test

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
This commit is contained in:
Benjamin Wang 2024-02-08 14:07:17 +00:00
parent 42f0cb9762
commit 5b2a9e2ab3

View File

@ -139,8 +139,7 @@ type ClusterConfig struct {
DiscoveryURL string
AuthToken string
AuthTokenTTL uint
AuthToken string
QuotaBackendBytes int64
BackendBatchInterval time.Duration
@ -268,7 +267,6 @@ func (c *Cluster) mustNewMember(t testutil.TB) *Member {
Name: fmt.Sprintf("m%v", memberNumber),
MemberNumber: memberNumber,
AuthToken: c.Cfg.AuthToken,
AuthTokenTTL: c.Cfg.AuthTokenTTL,
PeerTLS: c.Cfg.PeerTLS,
ClientTLS: c.Cfg.ClientTLS,
QuotaBackendBytes: c.Cfg.QuotaBackendBytes,
@ -598,7 +596,6 @@ type MemberConfig struct {
PeerTLS *transport.TLSInfo
ClientTLS *transport.TLSInfo
AuthToken string
AuthTokenTTL uint
QuotaBackendBytes int64
BackendBatchInterval time.Duration
MaxTxnOps uint
@ -697,9 +694,6 @@ func MustNewMember(t testutil.TB, mcfg MemberConfig) *Member {
if mcfg.AuthToken != "" {
m.AuthToken = mcfg.AuthToken
}
if mcfg.AuthTokenTTL != 0 {
m.TokenTTL = mcfg.AuthTokenTTL
}
m.BcryptCost = uint(bcrypt.MinCost) // use min bcrypt cost to speedy up integration testing