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 <[email protected]>
  • Loading branch information
sarthakaggarwal97 authored Jan 31, 2024
1 parent bf5e628 commit cfcb128
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 cfcb128

Please sign in to comment.