Skip to content

Commit aee6c0d

Browse files
[GR-68599] Fix transient failure in JmxTest.
PullRequest: graal/21878
2 parents 4b03536 + f0d7c0d commit aee6c0d

File tree

1 file changed

+2
-4
lines changed
  • substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx

1 file changed

+2
-4
lines changed

substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx/JmxTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import java.util.List;
5151
import java.util.Map;
5252
import java.util.Set;
53-
import java.util.concurrent.TimeUnit;
5453

5554
import javax.management.MBeanServer;
5655
import javax.management.MBeanServerConnection;
@@ -191,12 +190,11 @@ private static void runCommand(List<String> command) throws Exception {
191190
ProcessBuilder pb = new ProcessBuilder().command(command);
192191
pb.directory(tempDirectory.toFile());
193192
Process process = pb.start();
194-
process.waitFor(5, TimeUnit.SECONDS);
193+
process.waitFor();
195194
if (process.exitValue() > 0) {
196195
String processError = String.join(" \\ ", FileUtils.readAllLines(process.getErrorStream()));
197196
String processOutput = String.join(" \\ ", FileUtils.readAllLines(process.getInputStream()));
198-
throw new IOException(
199-
"Keytool execution error: " + processError + ", output: " + processOutput + ", command: " + command);
197+
throw new IOException("Keytool execution error: " + processError + ", output: " + processOutput + ", command: " + command);
200198
}
201199
}
202200

0 commit comments

Comments
 (0)