Skip to content

Commit

Permalink
Remove the unused AuthTokenTTL parameter from integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Wang <[email protected]>
  • Loading branch information
ahrtr committed Feb 8, 2024
1 parent 25f91b4 commit 7ac452b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/framework/integration/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ type ClusterConfig struct {

DiscoveryURL string

AuthToken string
AuthTokenTTL uint
AuthToken string

QuotaBackendBytes int64
BackendBatchInterval time.Duration
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -598,7 +596,6 @@ type MemberConfig struct {
PeerTLS *transport.TLSInfo
ClientTLS *transport.TLSInfo
AuthToken string
AuthTokenTTL uint
QuotaBackendBytes int64
BackendBatchInterval time.Duration
MaxTxnOps uint
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7ac452b

Please sign in to comment.