From dbc746524ef26b34eceb037d05a2e66834381271 Mon Sep 17 00:00:00 2001 From: Michal Cmarada Date: Tue, 12 Mar 2019 13:48:17 +0100 Subject: update callback timeouts to speed up unit tests Change-Id: I16383b4e987be0c981e5c13a0aeefe34ff4b70f4 Signed-off-by: Michal Cmarada --- java/jvpp-registry/io/fd/jvpp/AbstractCallbackApiTest.java | 5 +---- java/jvpp-registry/io/fd/jvpp/test/ConnectionTest.java | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'java') 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(); } -- cgit 1.2.3-korg