From: Vladyslav Marchenko Date: Tue, 10 Nov 2020 11:47:34 +0000 (+0200) Subject: Fix unstable test for NetconfDeviceCommunicator X-Git-Tag: v1.13.0~15 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=e8a6560b1d388a72e0e0483818830ff431cda92a;p=netconf.git Fix unstable test for NetconfDeviceCommunicator The root cause of the issue is that this test requires more time for verification on Windows-type OS, and sometimes that was a reason for test failure. JIRA: NETCONF-760 Change-Id: I7aab0f89fe4c466e2cdf772afffe3d54eb0f19df Signed-off-by: Vladyslav Marchenko Signed-off-by: Oleksii Mozghovyi --- diff --git a/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/listener/NetconfDeviceCommunicatorTest.java b/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/listener/NetconfDeviceCommunicatorTest.java index 8c9c0e7d1d..cd3dae30af 100644 --- a/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/listener/NetconfDeviceCommunicatorTest.java +++ b/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/listener/NetconfDeviceCommunicatorTest.java @@ -384,7 +384,7 @@ public class NetconfDeviceCommunicatorTest { * Test whether reconnect is scheduled properly. */ @Test - public void testNetconfDeviceReconnectInCommunicator() throws Exception { + public void testNetconfDeviceReconnectInCommunicator() { final RemoteDevice device = mock(RemoteDevice.class); @@ -428,7 +428,7 @@ public class NetconfDeviceCommunicatorTest { listener.initializeRemoteConnection(new NetconfClientDispatcherImpl(group, group, time), cfg); verify(reconnectStrategy, - timeout((int) TimeUnit.MINUTES.toMillis(3)).times(101)).scheduleReconnect(any(Throwable.class)); + timeout(TimeUnit.MINUTES.toMillis(4)).times(101)).scheduleReconnect(any(Throwable.class)); } finally { time.stop(); group.shutdownGracefully();