mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(tests/v1_migration): add a -name flag
The info flag is ignored as of 1c91c167fc98608ef850a7539550bfc15dedbb46 so in order for this test to work we need to add `-name` flag.
This commit is contained in:
parent
3d9fc3846c
commit
da3fe920cb
@ -37,6 +37,7 @@ func TestV1SoloMigration(t *testing.T) {
|
||||
args := []string{"etcd", fmt.Sprintf("-data-dir=%s", nodepath)}
|
||||
args = append(args, "-addr", "127.0.0.1:4001")
|
||||
args = append(args, "-peer-addr", "127.0.0.1:7001")
|
||||
args = append(args, "-name", "v1")
|
||||
process, err := os.StartProcess(EtcdBinPath, args, procAttr)
|
||||
if err != nil {
|
||||
t.Fatal("start process failed:" + err.Error())
|
||||
@ -79,6 +80,7 @@ func TestV1ClusterMigration(t *testing.T) {
|
||||
args := []string{"etcd", fmt.Sprintf("-data-dir=%s", nodepath)}
|
||||
args = append(args, "-addr", fmt.Sprintf("127.0.0.1:%d", 4001+i))
|
||||
args = append(args, "-peer-addr", fmt.Sprintf("127.0.0.1:%d", 7001+i))
|
||||
args = append(args, "-name", node)
|
||||
process, err := os.StartProcess(EtcdBinPath, args, procAttr)
|
||||
if err != nil {
|
||||
t.Fatal("start process failed:" + err.Error())
|
||||
|
Loading…
x
Reference in New Issue
Block a user