From cca9671a92f1f11ba9ecf05560f65e70708548de Mon Sep 17 00:00:00 2001 From: Jan Kuipers <148754765+jan-elastic@users.noreply.github.com> Date: Mon, 29 Sep 2025 12:14:25 +0200 Subject: [PATCH] Fix InternalCategorizationAggregationTests.testReduceRandom (#135533) --- .../InternalCategorizationAggregationTests.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/aggs/categorization/InternalCategorizationAggregationTests.java b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/aggs/categorization/InternalCategorizationAggregationTests.java index 67d0e6f35bafc..7a44358cfa8f8 100644 --- a/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/aggs/categorization/InternalCategorizationAggregationTests.java +++ b/x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/aggs/categorization/InternalCategorizationAggregationTests.java @@ -46,12 +46,6 @@ protected SearchPlugin registerPlugin() { return MachineLearningTests.createTrialLicensedMachineLearning(Settings.EMPTY); } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/87240") - public void testReduceRandom() { - // The bug is in the assertReduced() method immediately below that the base class testReduceRandom() calls. - // To unmute after the bug is fixed, simply delete this entire method so that the base class method is used again. - } - @Override protected void assertReduced(InternalCategorizationAggregation reduced, List inputs) { Map reducedCounts = toCounts(reduced.getBuckets().stream()); @@ -80,7 +74,7 @@ protected InternalCategorizationAggregation createTestInstance( name, randomIntBetween(10, 100), randomLongBetween(1, 10), - randomIntBetween(1, 100), + randomIntBetween(50, 100), metadata, buckets );