From f0d7c0d417d10c6805435fe72e175e712cbea640 Mon Sep 17 00:00:00 2001 From: Christian Haeubl Date: Mon, 18 Aug 2025 13:23:15 +0200 Subject: [PATCH] Fix JmxTest. --- .../src/com/oracle/svm/test/jmx/JmxTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx/JmxTest.java b/substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx/JmxTest.java index 7dda4b0c38f8..f3eb32754a86 100644 --- a/substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx/JmxTest.java +++ b/substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx/JmxTest.java @@ -50,7 +50,6 @@ import java.util.List; import java.util.Map; import java.util.Set; -import java.util.concurrent.TimeUnit; import javax.management.MBeanServer; import javax.management.MBeanServerConnection; @@ -191,12 +190,11 @@ private static void runCommand(List command) throws Exception { ProcessBuilder pb = new ProcessBuilder().command(command); pb.directory(tempDirectory.toFile()); Process process = pb.start(); - process.waitFor(5, TimeUnit.SECONDS); + process.waitFor(); if (process.exitValue() > 0) { String processError = String.join(" \\ ", FileUtils.readAllLines(process.getErrorStream())); String processOutput = String.join(" \\ ", FileUtils.readAllLines(process.getInputStream())); - throw new IOException( - "Keytool execution error: " + processError + ", output: " + processOutput + ", command: " + command); + throw new IOException("Keytool execution error: " + processError + ", output: " + processOutput + ", command: " + command); } }