From 4420487696d2f2f6f5862dee564b52faf6993ad4 Mon Sep 17 00:00:00 2001 From: Ashish Singh Date: Thu, 19 Sep 2024 16:08:39 +0530 Subject: [PATCH] Fix verify shard before close action broken test Signed-off-by: Ashish Singh --- .../close/TransportVerifyShardBeforeCloseActionTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/action/admin/indices/close/TransportVerifyShardBeforeCloseActionTests.java b/server/src/test/java/org/opensearch/action/admin/indices/close/TransportVerifyShardBeforeCloseActionTests.java index 5ca5f53f180be..62a865f46b276 100644 --- a/server/src/test/java/org/opensearch/action/admin/indices/close/TransportVerifyShardBeforeCloseActionTests.java +++ b/server/src/test/java/org/opensearch/action/admin/indices/close/TransportVerifyShardBeforeCloseActionTests.java @@ -208,7 +208,7 @@ public void testShardIsFlushed() throws Throwable { public void testShardIsSynced() throws Throwable { executeOnPrimaryOrReplica(true); - verify(indexShard, times(1)).sync(); + verify(indexShard, times(1)).sync(true); } public void testOperationFailsWhenNotBlocked() {