Skip to content

Commit

Permalink
fix flaky 11610 (opensearch-project#12049)
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
  • Loading branch information
sarthakaggarwal97 authored and shiv0408 committed Apr 25, 2024
1 parent 5901057 commit a8604c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public void testCloseWhileDeletingIndices() throws Exception {
throw new AssertionError(e);
}
try {
assertAcked(client().admin().indices().prepareDelete(indexToDelete));
assertAcked(client().admin().indices().prepareDelete(indexToDelete).setTimeout("60s"));
} catch (final Exception e) {
assertException(e, indexToDelete);
}
Expand All @@ -301,7 +301,7 @@ public void testCloseWhileDeletingIndices() throws Exception {
throw new AssertionError(e);
}
try {
client().admin().indices().prepareClose(indexToClose).get();
client().admin().indices().prepareClose(indexToClose).setTimeout("60s").get();
} catch (final Exception e) {
assertException(e, indexToClose);
}
Expand Down

0 comments on commit a8604c9

Please sign in to comment.