Skip to content

Commit 5e68be4

Browse files
committed
fix test failures on main branch
Signed-off-by: zane-neo <zaniu@amazon.com>
1 parent da4c6c7 commit 5e68be4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/org/opensearch/neuralsearch/processor/TextChunkingProcessorTests.java

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import static java.util.Collections.singletonMap;
2020
import static org.mockito.ArgumentMatchers.any;
2121
import static org.mockito.ArgumentMatchers.anyString;
22+
import static org.mockito.ArgumentMatchers.eq;
2223
import static org.mockito.Mockito.when;
2324
import static org.mockito.Mockito.mock;
2425

@@ -97,6 +98,7 @@ public void setup() {
9798
IndexMetadata indexMetadata = mock(IndexMetadata.class);
9899
when(indexMetadata.getIndex()).thenReturn(new Index("my_index", UUID.randomUUID().toString()));
99100
when(indexMetadata.getSettings()).thenReturn(settings);
101+
when(indexMetadata.getCustomData(eq(IndexMetadata.REMOTE_STORE_CUSTOM_KEY))).thenReturn(null);
100102
IndexService indexService = mock(IndexService.class);
101103
when(indicesService.indexServiceSafe(any(Index.class))).thenReturn(indexService);
102104
IndexSettings indexSettings = new IndexSettings(indexMetadata, settings);

0 commit comments

Comments
 (0)