Skip to content

Commit

Permalink
fix flaky 11610 (#12049) (#12110)
Browse files Browse the repository at this point in the history
(cherry picked from commit cfcb128)

Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 3a951e5 commit b5820f5
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 b5820f5

Please sign in to comment.