mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #773 from unihorn/82
tests(snapshot): expand reasonable range for index
This commit is contained in:
commit
b56aa62bcc
@ -56,7 +56,7 @@ func TestSnapshot(t *testing.T) {
|
||||
|
||||
index, _ := strconv.Atoi(snapshots[0].Name()[2:5])
|
||||
|
||||
if index < 507 || index > 515 {
|
||||
if index < 503 || index > 515 {
|
||||
t.Fatal("wrong name of snapshot :", snapshots[0].Name())
|
||||
}
|
||||
|
||||
@ -89,7 +89,7 @@ func TestSnapshot(t *testing.T) {
|
||||
|
||||
index, _ = strconv.Atoi(snapshots[0].Name()[2:6])
|
||||
|
||||
if index < 1014 || index > 1025 {
|
||||
if index < 1010 || index > 1025 {
|
||||
t.Fatal("wrong name of snapshot :", snapshots[0].Name())
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user