Merge pull request #14889 from halegreen/fix-typo

test: fix typo
This commit is contained in:
Piotr Tabor 2022-12-04 16:33:35 +01:00 committed by GitHub
commit 40cc73c22e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,9 +31,9 @@ import (
// TODO(ahrtr): add network partition scenario to trigger snapshots. // TODO(ahrtr): add network partition scenario to trigger snapshots.
func TestMixVersionsSendSnapshot(t *testing.T) { func TestMixVersionsSendSnapshot(t *testing.T) {
cases := []struct { cases := []struct {
name string name string
clusterVersion e2e.ClusterVersion clusterVersion e2e.ClusterVersion
newInstaceVersion e2e.ClusterVersion newInstanceVersion e2e.ClusterVersion
}{ }{
// etcd doesn't support adding a new member of old version into // etcd doesn't support adding a new member of old version into
// a cluster with higher version. For example, etcd cluster // a cluster with higher version. For example, etcd cluster
@ -46,15 +46,15 @@ func TestMixVersionsSendSnapshot(t *testing.T) {
newInstaceVersion: e2e.LastVersion, newInstaceVersion: e2e.LastVersion,
},*/ },*/
{ {
name: "etcd instance with current version receives snapshot from the leader with last version", name: "etcd instance with current version receives snapshot from the leader with last version",
clusterVersion: e2e.LastVersion, clusterVersion: e2e.LastVersion,
newInstaceVersion: e2e.CurrentVersion, newInstanceVersion: e2e.CurrentVersion,
}, },
} }
for _, tc := range cases { for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) { t.Run(tc.name, func(t *testing.T) {
mixVersionsSnapshotTest(t, tc.clusterVersion, tc.newInstaceVersion) mixVersionsSnapshotTest(t, tc.clusterVersion, tc.newInstanceVersion)
}) })
} }
} }