diff --git a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/DataTiersFeatureSetTests.java b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/DataTiersFeatureSetTests.java index 09adeea5448..a59b81ac479 100644 --- a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/DataTiersFeatureSetTests.java +++ b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/DataTiersFeatureSetTests.java @@ -29,7 +29,7 @@ public class DataTiersFeatureSetTests extends ESTestCase { public void testCalculateMAD() { assertThat(DataTiersFeatureSet.computeMedianAbsoluteDeviation(new TDigestState(10)), equalTo(0L)); - TDigestState sketch = new TDigestState(randomDoubleBetween(0, 1000, false)); + TDigestState sketch = new TDigestState(randomDoubleBetween(1, 1000, false)); sketch.add(1); sketch.add(1); sketch.add(2);