Tests: Fix edge case in InternalBucketMetricValueTests
Same problem as in #26084.
This commit is contained in:
parent
729e09ed6e
commit
0ad4c0529b
|
@ -89,7 +89,11 @@ public class InternalBucketMetricValueTests extends InternalAggregationTestCase<
|
||||||
name += randomAlphaOfLength(5);
|
name += randomAlphaOfLength(5);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
if (Double.isFinite(value)) {
|
||||||
value += between(1, 100);
|
value += between(1, 100);
|
||||||
|
} else {
|
||||||
|
value = randomDoubleBetween(0, 100000, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
keys = Arrays.copyOf(keys, keys.length + 1);
|
keys = Arrays.copyOf(keys, keys.length + 1);
|
||||||
|
|
Loading…
Reference in New Issue