Skip to content

Commit 553f783

Browse files
authored
Fix DieWithDignity test when waiting on jps backport(#43861) (#43871)
the test often hangs on executing jps command we don't need to wait for this command to finish. closes #43413
1 parent 680edbe commit 553f783

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

qa/die-with-dignity/src/test/java/org/elasticsearch/qa/die_with_dignity/DieWithDignityIT.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import java.util.List;
3535

3636
import static org.hamcrest.Matchers.containsString;
37-
import static org.hamcrest.Matchers.equalTo;
3837
import static org.hamcrest.Matchers.not;
3938

4039
public class DieWithDignityIT extends ESRestTestCase {
@@ -49,7 +48,6 @@ public void testDieWithDignity() throws Exception {
4948
assertBusy(() -> {
5049
final String jpsPath = PathUtils.get(System.getProperty("runtime.java.home"), "bin/jps").toString();
5150
final Process process = new ProcessBuilder().command(jpsPath, "-v").start();
52-
assertThat(process.waitFor(), equalTo(0));
5351

5452
try (InputStream is = process.getInputStream();
5553
BufferedReader in = new BufferedReader(new InputStreamReader(is, "UTF-8"))) {

0 commit comments

Comments
 (0)