Merge "Add timeout to netconf IT test"
authorTony Tkacik <ttkacik@cisco.com>
Wed, 7 Jan 2015 09:42:01 +0000 (09:42 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 7 Jan 2015 09:42:02 +0000 (09:42 +0000)
1  2 
opendaylight/netconf/netconf-it/src/test/java/org/opendaylight/controller/netconf/it/NetconfITSecureTest.java

@@@ -111,10 -113,10 +111,10 @@@ public class NetconfITSecureTest extend
          nioExec.shutdownNow();
      }
  
-     @Test
+     @Test(timeout = 2*60*1000)
      public void testSecure() throws Exception {
          final NetconfClientDispatcher dispatch = new NetconfClientDispatcherImpl(getNettyThreadgroup(), getNettyThreadgroup(), getHashedWheelTimer());
 -        try (TestingNetconfClient netconfClient = new TestingNetconfClient("testing-ssh-client", dispatch, getClientConfiguration(new SimpleNetconfClientSessionListener()))) {
 +        try (TestingNetconfClient netconfClient = new TestingNetconfClient("testing-ssh-client", dispatch, getClientConfiguration(new SimpleNetconfClientSessionListener(), TLS_ADDRESS))) {
              NetconfMessage response = netconfClient.sendMessage(getGetConfig());
              assertFalse("Unexpected error message " + XmlUtil.toString(response.getDocument()),
                      NetconfMessageUtil.isErrorMessage(response));

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.