Skip to content

Commit

Permalink
fix flaky 11610
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
  • Loading branch information
sarthakaggarwal97 committed Jan 28, 2024
1 parent c204585 commit 85c7dfb
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 85c7dfb

Please sign in to comment.