mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test fix wrong assumption should be previous index + 501 + 6
This commit is contained in:
parent
e90937a2b4
commit
4f45de6953
@ -55,7 +55,7 @@ func TestSimpleSnapshot(t *testing.T) {
|
|||||||
|
|
||||||
index, _ := strconv.Atoi(snapshots[0].Name()[2:5])
|
index, _ := strconv.Atoi(snapshots[0].Name()[2:5])
|
||||||
|
|
||||||
if index < 507 || index > 510 {
|
if index <= 507 || index >= 510 {
|
||||||
t.Fatal("wrong name of snapshot :", snapshots[0].Name())
|
t.Fatal("wrong name of snapshot :", snapshots[0].Name())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ func TestSimpleSnapshot(t *testing.T) {
|
|||||||
|
|
||||||
index, _ = strconv.Atoi(snapshots[0].Name()[2:6])
|
index, _ = strconv.Atoi(snapshots[0].Name()[2:6])
|
||||||
|
|
||||||
if index < 1015 || index > 1018 {
|
if index <= 1014 || index >= 1017 {
|
||||||
t.Fatal("wrong name of snapshot :", snapshots[0].Name())
|
t.Fatal("wrong name of snapshot :", snapshots[0].Name())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user