Skip to content

Commit

Permalink
Spotless fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kale <kalsac@amazon.com>
  • Loading branch information
Sachin Kale committed Jul 20, 2023
1 parent b2485fc commit 5be4c1f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import org.junit.Before;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.function.Predicate;
Expand Down Expand Up @@ -502,8 +503,11 @@ public void testAddAsRemoteStoreRestore() {
Version.CURRENT,
new IndexId(TEST_INDEX_1, "1")
);
final RoutingTable routingTable = new RoutingTable.Builder().addAsRemoteStoreRestore(indexMetadata, remoteStoreRecoverySource)
.build();
final RoutingTable routingTable = new RoutingTable.Builder().addAsRemoteStoreRestore(
indexMetadata,
remoteStoreRecoverySource,
new HashMap<>()
).build();
assertTrue(routingTable.hasIndex(TEST_INDEX_1));
assertEquals(this.numberOfShards, routingTable.allShards(TEST_INDEX_1).size());
assertEquals(this.numberOfShards, routingTable.index(TEST_INDEX_1).shardsWithState(UNASSIGNED).size());
Expand Down

0 comments on commit 5be4c1f

Please sign in to comment.