File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
substratevm/src/com.oracle.svm.test/src/com/oracle/svm/test/jmx Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 50
50
import java .util .List ;
51
51
import java .util .Map ;
52
52
import java .util .Set ;
53
- import java .util .concurrent .TimeUnit ;
54
53
55
54
import javax .management .MBeanServer ;
56
55
import javax .management .MBeanServerConnection ;
@@ -191,12 +190,11 @@ private static void runCommand(List<String> command) throws Exception {
191
190
ProcessBuilder pb = new ProcessBuilder ().command (command );
192
191
pb .directory (tempDirectory .toFile ());
193
192
Process process = pb .start ();
194
- process .waitFor (5 , TimeUnit . SECONDS );
193
+ process .waitFor ();
195
194
if (process .exitValue () > 0 ) {
196
195
String processError = String .join (" \\ " , FileUtils .readAllLines (process .getErrorStream ()));
197
196
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 );
200
198
}
201
199
}
202
200
You can’t perform that action at this time.
0 commit comments