m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-11-14 20:10:00 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-11-14 20:10:00 +0100
commit2d0993f3c273c6401786a67d566d7b46180d30cb (patch)
treeaf286b9d7b8dc3b98f43c43f0874e34572ab1d43 /src
parent68b2cba1cf2bc96a996a15220e4df95b2e86520e (diff)
Adjust agent tests
Diffstat (limited to 'src')
-rw-r--r--src/test/java/pl/edu/mimuw/cloudatlas/agent/AgentTest.java12
1 files changed, 8 insertions, 4 deletions
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