summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorMichal Cmarada <mcmarada@cisco.com>2019-03-12 13:48:17 +0100
committerMichal Cmarada <mcmarada@cisco.com>2019-03-15 10:07:43 +0100
commitdbc746524ef26b34eceb037d05a2e66834381271 (patch)
tree0334668f9b9cbaca7a522597af26b631ce22602c /java
parenta9aacd4d48c3a5887267366c2ef643e953975792 (diff)
update callback timeouts to speed up unit tests
Change-Id: I16383b4e987be0c981e5c13a0aeefe34ff4b70f4 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
Diffstat (limited to 'java')
-rw-r--r--java/jvpp-registry/io/fd/jvpp/AbstractCallbackApiTest.java5
-rw-r--r--java/jvpp-registry/io/fd/jvpp/test/ConnectionTest.java2
2 files changed, 1 insertions, 6 deletions
diff --git a/java/jvpp-registry/io/fd/jvpp/AbstractCallbackApiTest.java b/java/jvpp-registry/io/fd/jvpp/AbstractCallbackApiTest.java
index a2e38e1..f2af1eb 100644
--- a/java/jvpp-registry/io/fd/jvpp/AbstractCallbackApiTest.java
+++ b/java/jvpp-registry/io/fd/jvpp/AbstractCallbackApiTest.java
@@ -44,17 +44,14 @@ public abstract class AbstractCallbackApiTest {
});
System.out.println("Successfully connected to VPP");
- Thread.sleep(1000);
System.out.println("Sending control ping using JVppRegistry");
registry.controlPing(jvpp.getClass());
- Thread.sleep(2000);
-
System.out.println("Sending control ping using JVpp plugin");
jvpp.send(new ControlPing());
- Thread.sleep(2000);
+ Thread.sleep(100);
System.out.println("Disconnecting...");
Assertions.assertEquals(2, receivedPingCount);
Assertions.assertEquals(0, errorPingCount);
diff --git a/java/jvpp-registry/io/fd/jvpp/test/ConnectionTest.java b/java/jvpp-registry/io/fd/jvpp/test/ConnectionTest.java
index b982d11..fece285 100644
--- a/java/jvpp-registry/io/fd/jvpp/test/ConnectionTest.java
+++ b/java/jvpp-registry/io/fd/jvpp/test/ConnectionTest.java
@@ -30,9 +30,7 @@ public class ConnectionTest {
final JVppRegistry registry = new JVppRegistryImpl("ConnectionTest");
try {
System.out.println("Successfully connected to vpp");
- Thread.sleep(5000);
System.out.println("Disconnecting...");
- Thread.sleep(1000);
} finally {
registry.close();
}