mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test:fix typo
Signed-off-by: WangXiaoxiao <1141195807@qq.com>
This commit is contained in:
parent
bdd5347313
commit
f7f5474515
@ -30,9 +30,9 @@ import (
|
||||
// TODO(ahrtr): add network partition scenario to trigger snapshots.
|
||||
func TestMixVersionsSendSnapshot(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
clusterVersion e2e.ClusterVersion
|
||||
newInstaceVersion e2e.ClusterVersion
|
||||
name string
|
||||
clusterVersion e2e.ClusterVersion
|
||||
newInstanceVersion e2e.ClusterVersion
|
||||
}{
|
||||
// etcd doesn't support adding a new member of old version into
|
||||
// a cluster with higher version. For example, etcd cluster
|
||||
@ -45,15 +45,15 @@ func TestMixVersionsSendSnapshot(t *testing.T) {
|
||||
newInstaceVersion: e2e.LastVersion,
|
||||
},*/
|
||||
{
|
||||
name: "etcd instance with current version receives snapshot from the leader with last version",
|
||||
clusterVersion: e2e.LastVersion,
|
||||
newInstaceVersion: e2e.CurrentVersion,
|
||||
name: "etcd instance with current version receives snapshot from the leader with last version",
|
||||
clusterVersion: e2e.LastVersion,
|
||||
newInstanceVersion: e2e.CurrentVersion,
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
mixVersionsSnapshotTest(t, tc.clusterVersion, tc.newInstaceVersion)
|
||||
mixVersionsSnapshotTest(t, tc.clusterVersion, tc.newInstanceVersion)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user