lib/storage: fix tests for 32-bit arches such as GOARCH=386 and GOARCH=arm

This commit is contained in:
Aliaksandr Valialkin 2020-09-29 13:09:17 +03:00
parent 79b00f7b6b
commit 338a53ccf9

View file

@ -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))