Give test a little more space

In #64744 I added a randomized test for how much room a part of the
cardinality use in memory. It's bound were a little low. This gives it a
few more bytes before it falls over so we don't see the test fail 1% or
2% of the time.
This commit is contained in:
Nik Everett 2020-11-09 15:13:52 -05:00
parent fae9b06cd5
commit a573f42f87

View file

@ -127,7 +127,7 @@ public class HyperLogLogPlusPlusSparseTests extends ESTestCase {
int precision = between(MIN_PRECISION, MAX_PRECISION); int precision = between(MIN_PRECISION, MAX_PRECISION);
long initialBucketCount = between(0, 100); long initialBucketCount = between(0, 100);
MockBigArrays.assertFitsIn( MockBigArrays.assertFitsIn(
ByteSizeValue.ofBytes(initialBucketCount * 16), ByteSizeValue.ofBytes(Math.max(256, initialBucketCount * 32)),
bigArrays -> new HyperLogLogPlusPlusSparse(precision, bigArrays, initialBucketCount) bigArrays -> new HyperLogLogPlusPlusSparse(precision, bigArrays, initialBucketCount)
); );
} }