X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fimpl%2FNetconfDispatcherImplTest.java;h=9835c2393ba489e7dcf7ead4ceca119beef7f63b;hp=0ecc1cb38324ede5b3443706a071a68a3d21a9dc;hb=f21eb777e0e23586aaa3880028b556a48dfd4823;hpb=3fdb59d96aecf80c8e5b414f2c69fc2d521c0abd diff --git a/opendaylight/netconf/netconf-impl/src/test/java/org/opendaylight/controller/netconf/impl/NetconfDispatcherImplTest.java b/opendaylight/netconf/netconf-impl/src/test/java/org/opendaylight/controller/netconf/impl/NetconfDispatcherImplTest.java index 0ecc1cb383..9835c2393b 100644 --- a/opendaylight/netconf/netconf-impl/src/test/java/org/opendaylight/controller/netconf/impl/NetconfDispatcherImplTest.java +++ b/opendaylight/netconf/netconf-impl/src/test/java/org/opendaylight/controller/netconf/impl/NetconfDispatcherImplTest.java @@ -26,6 +26,7 @@ public class NetconfDispatcherImplTest { private EventLoopGroup nettyGroup; private NetconfServerDispatcher dispatch; private DefaultCommitNotificationProducer commitNot; + private HashedWheelTimer hashedWheelTimer; @Before public void setUp() throws Exception { @@ -36,8 +37,9 @@ public class NetconfDispatcherImplTest { NetconfOperationServiceFactoryListener factoriesListener = new NetconfOperationServiceFactoryListenerImpl(); SessionIdProvider idProvider = new SessionIdProvider(); + hashedWheelTimer = new HashedWheelTimer(); NetconfServerSessionNegotiatorFactory serverNegotiatorFactory = new NetconfServerSessionNegotiatorFactory( - new HashedWheelTimer(), factoriesListener, idProvider); + hashedWheelTimer, factoriesListener, idProvider, 5000); NetconfServerSessionListenerFactory listenerFactory = new NetconfServerSessionListenerFactory( factoriesListener, commitNot, idProvider, null); @@ -49,6 +51,7 @@ public class NetconfDispatcherImplTest { @After public void tearDown() throws Exception { + hashedWheelTimer.stop(); commitNot.close(); nettyGroup.shutdownGracefully(); }