Skip to content

Commit d745536

Browse files
committed
fixed unit test
1 parent f435afd commit d745536

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/framework/src/main/java/org/elasticsearch/index/mapper/MapperTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ protected void assertFetch(MapperService mapperService, String field, Object val
859859
.build(new IndexFieldDataCache.None(), new NoneCircuitBreakerService())
860860
);
861861
SearchExecutionContext searchExecutionContext = mock(SearchExecutionContext.class);
862+
when(searchExecutionContext.getIndexSettings()).thenReturn(mapperService.getIndexSettings());
862863
when(searchExecutionContext.isSourceEnabled()).thenReturn(true);
863864
when(searchExecutionContext.sourcePath(field)).thenReturn(Set.of(field));
864865
when(searchExecutionContext.getForField(ft, fdt)).thenAnswer(inv -> fieldDataLookup(mapperService).apply(ft, () -> {

0 commit comments

Comments
 (0)