mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 21:05:23 +00:00
the test often hangs on executing jps command we don't need to wait for this command to finish. closes #43413
This commit is contained in:
parent
680edbe3f1
commit
553f783e73
@ -34,7 +34,6 @@ import java.util.Iterator;
|
||||
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 class DieWithDignityIT extends ESRestTestCase {
|
||||
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"))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user