Skip to content

Commit

Permalink
Remove assert busy
Browse files Browse the repository at this point in the history
  • Loading branch information
jasontedor committed Sep 3, 2021
1 parent 15005b2 commit 3dd8db6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DieWithDignityIT extends ESRestTestCase {

public void testDieWithDignity() throws Exception {
// there should be an Elasticsearch process running with the die.with.dignity.test system property
assertBusy(() -> {
{
final String jpsPath = PathUtils.get(System.getProperty("runtime.java.home"), "bin/jps").toString();
final Process process = new ProcessBuilder().command(jpsPath, "-v").start();

Expand All @@ -43,7 +43,7 @@ public void testDieWithDignity() throws Exception {
}
}
assertTrue(found);
});
}

expectThrows(IOException.class, () -> client().performRequest(new Request("GET", "/_die_with_dignity")));

Expand Down

0 comments on commit 3dd8db6

Please sign in to comment.