From c4cd86e0949812b988060809baa2b572db05aaa0 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Thu, 1 May 2014 18:05:18 -0700 Subject: [PATCH] tests(snapshot): expand reasonable range for index snapshot file was createed with name '0_503.ss' and '0_1010.ss' when testing. --- tests/functional/simple_snapshot_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/simple_snapshot_test.go b/tests/functional/simple_snapshot_test.go index e7692e735..4062d091a 100644 --- a/tests/functional/simple_snapshot_test.go +++ b/tests/functional/simple_snapshot_test.go @@ -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()) } }