diff --git a/server/src/test/java/org/opensearch/indices/IndicesRequestCacheTests.java b/server/src/test/java/org/opensearch/indices/IndicesRequestCacheTests.java index dcddd9f3d1318..6d4137ab3a4f5 100644 --- a/server/src/test/java/org/opensearch/indices/IndicesRequestCacheTests.java +++ b/server/src/test/java/org/opensearch/indices/IndicesRequestCacheTests.java @@ -1369,12 +1369,8 @@ public void testDeleteAndCreateIndexShardOnSameNodeAndVerifyStats() throws Excep s -> {}, RetentionLeaseSyncer.EMPTY, SegmentReplicationCheckpointPublisher.EMPTY, - null, - null, - localNode, - null, - DiscoveryNodes.builder().add(localNode).build() - ); + null + ); // In 2.11 this fn lacks some arguments that were present in 2.15. Assuming it can read the node from the routing // Verify that the new shard requestStats entries are empty. stats = indexShard.requestCache().stats();