From 5be4c1ffaf69426ebdaedfdc11a0875f32d52c2b Mon Sep 17 00:00:00 2001 From: Sachin Kale Date: Thu, 20 Jul 2023 11:06:46 +0530 Subject: [PATCH] Spotless fixes Signed-off-by: Sachin Kale --- .../org/opensearch/cluster/routing/RoutingTableTests.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/src/test/java/org/opensearch/cluster/routing/RoutingTableTests.java b/server/src/test/java/org/opensearch/cluster/routing/RoutingTableTests.java index 6b869ffed7d23..8d6971e7f1414 100644 --- a/server/src/test/java/org/opensearch/cluster/routing/RoutingTableTests.java +++ b/server/src/test/java/org/opensearch/cluster/routing/RoutingTableTests.java @@ -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; @@ -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());