From 338a53ccf95e4ced8363ee9974affc4d802aa799 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 29 Sep 2020 13:09:17 +0300 Subject: [PATCH] lib/storage: fix tests for 32-bit arches such as GOARCH=386 and GOARCH=arm --- lib/storage/block_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/block_test.go b/lib/storage/block_test.go index 586995b86..e057b465a 100644 --- a/lib/storage/block_test.go +++ b/lib/storage/block_test.go @@ -107,7 +107,7 @@ func getRandValues(rowsCount int) []int64 { func getRandTimestamps(rowsCount int) []int64 { a := make([]int64, rowsCount) - ts := int64(rand.Intn(1e12)) + ts := int64(rand.Intn(1e9)) for i := 0; i < rowsCount; i++ { a[i] = ts ts += int64(rand.Intn(1e5))