adjust columnN range to avoid divide-by-zero error in travisCI

This commit is contained in:
Travis 2017-07-12 00:11:47 -05:00
parent 8c3dfff9c9
commit 093500e34e
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

View file

@ -176,7 +176,7 @@ func TestFragment_SetFieldValue(t *testing.T) {
if err := quick.Check(func(bitDepth uint, columnN uint64, values []uint64) bool {
// Limit bit depth & maximum values.
bitDepth = (bitDepth % 62) + 1
columnN = (columnN % 100)
columnN = (columnN % 99) + 1
for i := range values {
values[i] = values[i] % (1 << bitDepth)
}