Skip to content

Commit cfcb128

Browse files
fix flaky 11610 (#12049)
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
1 parent bf5e628 commit cfcb128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/internalClusterTest/java/org/opensearch/indices/state/CloseIndexIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public void testCloseWhileDeletingIndices() throws Exception {
287287
throw new AssertionError(e);
288288
}
289289
try {
290-
assertAcked(client().admin().indices().prepareDelete(indexToDelete));
290+
assertAcked(client().admin().indices().prepareDelete(indexToDelete).setTimeout("60s"));
291291
} catch (final Exception e) {
292292
assertException(e, indexToDelete);
293293
}
@@ -301,7 +301,7 @@ public void testCloseWhileDeletingIndices() throws Exception {
301301
throw new AssertionError(e);
302302
}
303303
try {
304-
client().admin().indices().prepareClose(indexToClose).get();
304+
client().admin().indices().prepareClose(indexToClose).setTimeout("60s").get();
305305
} catch (final Exception e) {
306306
assertException(e, indexToClose);
307307
}

0 commit comments

Comments
 (0)