Skip to content

Commit

Permalink
Fix unit test for removal of x-pack aggregations. (#65)
Browse files Browse the repository at this point in the history
This PR fixes the unit test which failed after removal of the x-pack aggregations #59.
  • Loading branch information
adnapibar authored Feb 9, 2021
1 parent dac6af6 commit 7da7e34
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Class<?>, Integer> categories = new HashMap<>();
for (NamedXContentRegistry.Entry namedXContent : namedXContents) {
Expand Down

0 comments on commit 7da7e34

Please sign in to comment.