diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java index 7480499dc0c60..712243f5ba90e 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/RestHighLevelClientTests.java @@ -640,11 +640,6 @@ public void testDefaultNamedXContents() { int expectedInternalAggregations = InternalAggregationTestCase.getDefaultNamedXContents().size(); int expectedSuggestions = 3; - // Explicitly check for metrics from the analytics module because they aren't in InternalAggregationTestCase - assertTrue(namedXContents.removeIf(e -> e.name.getPreferredName().equals("string_stats"))); - assertTrue(namedXContents.removeIf(e -> e.name.getPreferredName().equals("top_metrics"))); - assertTrue(namedXContents.removeIf(e -> e.name.getPreferredName().equals("inference"))); - assertEquals(expectedInternalAggregations + expectedSuggestions, namedXContents.size()); Map, Integer> categories = new HashMap<>(); for (NamedXContentRegistry.Entry namedXContent : namedXContents) {