From c8ca29f4ac8c21a2e2c714dd3e7dfa0abbaf4a3d Mon Sep 17 00:00:00 2001 From: Przemyslaw Gomulka Date: Tue, 2 Jul 2019 14:31:00 +0200 Subject: [PATCH] Fix DieWithDignity test when waiting on jps (#43861) the test often hangs on executing jps command we don't need to wait for this command to finish. closes #43413 --- .../org/elasticsearch/qa/die_with_dignity/DieWithDignityIT.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/qa/die-with-dignity/src/test/java/org/elasticsearch/qa/die_with_dignity/DieWithDignityIT.java b/qa/die-with-dignity/src/test/java/org/elasticsearch/qa/die_with_dignity/DieWithDignityIT.java index 3c2359c59ce2e..c6350f92ae78f 100644 --- a/qa/die-with-dignity/src/test/java/org/elasticsearch/qa/die_with_dignity/DieWithDignityIT.java +++ b/qa/die-with-dignity/src/test/java/org/elasticsearch/qa/die_with_dignity/DieWithDignityIT.java @@ -34,7 +34,6 @@ import java.util.List; import static org.hamcrest.Matchers.containsString; -import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.not; public class DieWithDignityIT extends ESRestTestCase { @@ -49,7 +48,6 @@ public void testDieWithDignity() throws Exception { assertBusy(() -> { final String jpsPath = PathUtils.get(System.getProperty("runtime.java.home"), "bin/jps").toString(); final Process process = new ProcessBuilder().command(jpsPath, "-v").start(); - assertThat(process.waitFor(), equalTo(0)); try (InputStream is = process.getInputStream(); BufferedReader in = new BufferedReader(new InputStreamReader(is, "UTF-8"))) {