Skip to content

Commit

Permalink
Clean up test case
Browse files Browse the repository at this point in the history
  • Loading branch information
brusic committed Jan 10, 2025
1 parent 02f135f commit 4eb5173
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, QueryBuilder> filters = new HashMap<>(3);
for (int i = 0; i < 2; i++) {
Expand Down

0 comments on commit 4eb5173

Please sign in to comment.