Browse Source

Merge pull request #8922 from gyuho/corrupt-check

*: enable initial corrupt check in tests
Gyu-Ho Lee 8 years ago
parent
commit
bdff651428
2 changed files with 2 additions and 0 deletions
  1. 1 0
      e2e/ctl_v3_test.go
  2. 1 0
      tools/functional-tester/etcd-tester/member.go

+ 1 - 0
e2e/ctl_v3_test.go

@@ -82,6 +82,7 @@ func (cx *ctlCtx) applyOpts(opts []ctlOption) {
 	for _, opt := range opts {
 	for _, opt := range opts {
 		opt(cx)
 		opt(cx)
 	}
 	}
+	cx.initialCorruptCheck = true
 }
 }
 
 
 func withCfg(cfg etcdProcessClusterConfig) ctlOption {
 func withCfg(cfg etcdProcessClusterConfig) ctlOption {

+ 1 - 0
tools/functional-tester/etcd-tester/member.go

@@ -47,6 +47,7 @@ func (m *member) Flags() []string {
 		"--listen-peer-urls", m.PeerURL,
 		"--listen-peer-urls", m.PeerURL,
 		"--initial-advertise-peer-urls", m.PeerURL,
 		"--initial-advertise-peer-urls", m.PeerURL,
 		"--initial-cluster-state", "new",
 		"--initial-cluster-state", "new",
+		"--experimental-initial-corrupt-check",
 	}
 	}
 }
 }