Skip to content

Commit

Permalink
tests: unify strict-reconfig-check of common frame
Browse files Browse the repository at this point in the history
Signed-off-by: Clark <[email protected]>
  • Loading branch information
clement2026 committed Aug 18, 2022
1 parent 27ffd7e commit af77669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/ctl_v3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func testCtlWithOffline(t *testing.T, testFunc func(ctlCtx), testOfflineFunc fun
if ret.quotaBackendBytes > 0 {
ret.cfg.QuotaBackendBytes = ret.quotaBackendBytes
}
ret.cfg.NoStrictReconfig = ret.noStrictReconfig
ret.cfg.StrictReconfig = !ret.noStrictReconfig
if ret.initialCorruptCheck {
ret.cfg.InitialCorruptCheck = ret.initialCorruptCheck
}
Expand Down
4 changes: 2 additions & 2 deletions tests/framework/e2e/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ type EtcdProcessClusterConfig struct {
ForceNewCluster bool
InitialToken string
QuotaBackendBytes int64
NoStrictReconfig bool
StrictReconfig bool
EnableV2 bool
InitialCorruptCheck bool
AuthTokenOpts string
Expand Down Expand Up @@ -310,7 +310,7 @@ func (cfg *EtcdProcessClusterConfig) EtcdServerProcessConfigs(tb testing.TB) []*
"--quota-backend-bytes", fmt.Sprintf("%d", cfg.QuotaBackendBytes),
)
}
if cfg.NoStrictReconfig {
if !cfg.StrictReconfig {
args = append(args, "--strict-reconfig-check=false")
}
if cfg.EnableV2 {
Expand Down

0 comments on commit af77669

Please sign in to comment.