Increase test timeout for Jenkins

This commit is contained in:
rick.parker 2023-04-13 07:35:59 +01:00
parent bf17169da7
commit db683f2b4e

View File

@ -48,7 +48,7 @@ public class AegisAgentCommandLineTest {
String main = Main.class.getName();
String cp = System.getProperty("java.class.path");
Process process = new ProcessBuilder("java", "-javaagent:" + jar + "=" + config, "-cp", cp, main).start();
process.waitFor(5, TimeUnit.SECONDS);
process.waitFor(10, TimeUnit.SECONDS);
assertFalse(process.isAlive());
String out = new String(TestUtils.inputStreamReadAllBytes(process.getInputStream()), UTF_8);