From 2d0993f3c273c6401786a67d566d7b46180d30cb Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Thu, 14 Nov 2019 20:10:00 +0100 Subject: Adjust agent tests --- src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java b/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java index a185649..baf77ea 100644 --- a/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java +++ b/src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java @@ -23,15 +23,19 @@ public class AgentTest { @BeforeClass public static void bindApi() throws Exception { registryProcess = Runtime.getRuntime().exec("./scripts/registry"); - Thread.sleep(1000); + Thread.sleep(2000); agentProcess = Runtime.getRuntime().exec("./gradlew runAgent"); - Thread.sleep(1000); + Thread.sleep(5000); } @AfterClass public static void killProcesses() throws Exception { - registryProcess.destroy(); - agentProcess.destroy(); + try { + registryProcess.destroy(); + agentProcess.destroy(); + } catch (Exception e) { + System.out.println("Caught exception: " + e); + } } @Test -- cgit v1.2.3