diff options
author | Magdalena GrodziĆska <mag.grodzinska@gmail.com> | 2020-01-12 15:27:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 15:27:11 +0100 |
commit | d88caa2d3fdb3cc5d17a4367583e8ab385ead3b6 (patch) | |
tree | 85cccc543ba5531f88f0d9c2216dbd9136ae2ab6 /src/test/java/pl/edu/mimuw/cloudatlas/agent/UDUPTest.java | |
parent | f2841b8bfe142a2d6643cfe9bb9aca99cb8f6d23 (diff) | |
parent | 7e079f18eb919c0c64b40321e2860420f866a60a (diff) |
Merge pull request #111 from m-chrzan/optimize_tests_lol
Reduce sleeps
Diffstat (limited to 'src/test/java/pl/edu/mimuw/cloudatlas/agent/UDUPTest.java')
-rw-r--r-- | src/test/java/pl/edu/mimuw/cloudatlas/agent/UDUPTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/pl/edu/mimuw/cloudatlas/agent/UDUPTest.java b/src/test/java/pl/edu/mimuw/cloudatlas/agent/UDUPTest.java index ac2c587..f731706 100644 --- a/src/test/java/pl/edu/mimuw/cloudatlas/agent/UDUPTest.java +++ b/src/test/java/pl/edu/mimuw/cloudatlas/agent/UDUPTest.java @@ -30,7 +30,7 @@ public class UDUPTest { UDUPServer server2 = null; UDUPMessage msg1 = null; boolean testSuccess = true; - int timeout = 5000; + int timeout = 500; try { System.out.println("Starting udp1"); @@ -72,7 +72,7 @@ public class UDUPTest { udpThread2.start(); try { - Thread.sleep(500); + Thread.sleep(100); if (udp1 == null | udp2 == null) { testSuccess = false; } else { @@ -102,7 +102,7 @@ public class UDUPTest { UDUPServer server2 = null; UDUPMessage msg1 = null; boolean testSuccess = true; - int timeout = 3000; + int timeout = 1000; try { System.out.println("Starting udp1"); @@ -144,7 +144,7 @@ public class UDUPTest { udpThread2.start(); try { - Thread.sleep(500); + Thread.sleep(100); if (udp1 == null | udp2 == null) { testSuccess = false; } else { @@ -177,7 +177,7 @@ public class UDUPTest { UDUPMessage msg2 = null; UDUPMessage msg3 = null; boolean testSuccess = true; - int timeout = 3000; + int timeout = 1000; try { System.out.println("Starting udp1"); @@ -231,7 +231,7 @@ public class UDUPTest { udpThread2.start(); try { - Thread.sleep(500); + Thread.sleep(100); if (udp1 == null | udp2 == null) { testSuccess = false; } else { |