mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
commit
40cc73c22e
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user