From 4eb51737deaca70a7effa0e46ba0fb154ba53de9 Mon Sep 17 00:00:00 2001 From: Ivan Brusic Date: Thu, 9 Jan 2025 16:24:12 -0800 Subject: [PATCH] Clean up test case --- .../AdjacencyMatrixAggregationBuilderTests.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java index ceb2dc86956b5..e7c1de0123c9e 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java @@ -109,17 +109,6 @@ public void testFilterSizeLimitation() throws Exception { public void testShowOnlyIntersecting() throws Exception { QueryShardContext queryShardContext = mock(QueryShardContext.class); - IndexShard indexShard = mock(IndexShard.class); - Settings settings = Settings.builder() - .put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT) - .put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 1) - .put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 2) - .build(); - IndexMetadata indexMetadata = IndexMetadata.builder("index").settings(settings).build(); - IndexSettings indexSettings = new IndexSettings(indexMetadata, Settings.EMPTY); - when(indexShard.indexSettings()).thenReturn(indexSettings); - when(queryShardContext.getIndexSettings()).thenReturn(indexSettings); - SearchContext context = new TestSearchContext(queryShardContext, indexShard); Map filters = new HashMap<>(3); for (int i = 0; i < 2; i++) {