mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
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:
parent
fae9b06cd5
commit
a573f42f87
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ public class HyperLogLogPlusPlusSparseTests extends ESTestCase {
|
|||
int precision = between(MIN_PRECISION, MAX_PRECISION);
|
||||
long initialBucketCount = between(0, 100);
|
||||
MockBigArrays.assertFitsIn(
|
||||
ByteSizeValue.ofBytes(initialBucketCount * 16),
|
||||
ByteSizeValue.ofBytes(Math.max(256, initialBucketCount * 32)),
|
||||
bigArrays -> new HyperLogLogPlusPlusSparse(precision, bigArrays, initialBucketCount)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue