Skip to content

Commit

Permalink
Update a test to match new indexResponse.aliases() type.
Browse files Browse the repository at this point in the history
Signed-off-by: MaxKsyunz <[email protected]>
  • Loading branch information
MaxKsyunz committed Apr 26, 2023
1 parent 9d4cbfc commit c2f7391
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,7 @@ void cleanupWithoutScrollId() {
@Test
void getIndices() {
AliasMetadata aliasMetadata = mock(AliasMetadata.class);
ImmutableOpenMap.Builder<String, List<AliasMetadata>> builder = ImmutableOpenMap.builder();
builder.fPut("index",Arrays.asList(aliasMetadata));
final ImmutableOpenMap<String, List<AliasMetadata>> openMap = builder.build();
final var openMap = Map.of("index", List.of(aliasMetadata));
when(aliasMetadata.alias()).thenReturn("index_alias");
when(nodeClient.admin().indices()
.prepareGetIndex()
Expand Down

0 comments on commit c2f7391

Please sign in to comment.