1
0
Эх сурвалжийг харах

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.
Nik Everett 5 жил өмнө
parent
commit
a573f42f87

+ 1 - 1
server/src/test/java/org/elasticsearch/search/aggregations/metrics/HyperLogLogPlusPlusSparseTests.java

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