From 5b2a9e2ab34a26fe0ec98b59483ab98cff5d70b9 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Thu, 8 Feb 2024 14:07:17 +0000 Subject: [PATCH] Remove the unused AuthTokenTTL parameter from integration test Signed-off-by: Benjamin Wang --- tests/framework/integration/cluster.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/framework/integration/cluster.go b/tests/framework/integration/cluster.go index 9d50321ca95..2e3f73efcc0 100644 --- a/tests/framework/integration/cluster.go +++ b/tests/framework/integration/cluster.go @@ -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