[hornetq-commits] JBoss hornetq SVN: r12039 - branches/Branch_2_2_AS7/tests/src/org/hornetq/tests/integration/discovery.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Jan 23 03:59:33 EST 2012


Author: ataylor
Date: 2012-01-23 03:59:32 -0500 (Mon, 23 Jan 2012)
New Revision: 12039

Modified:
   branches/Branch_2_2_AS7/tests/src/org/hornetq/tests/integration/discovery/DiscoveryTest.java
Log:
added system property ti disable certain network interfaces from DiscoveryTest

Modified: branches/Branch_2_2_AS7/tests/src/org/hornetq/tests/integration/discovery/DiscoveryTest.java
===================================================================
--- branches/Branch_2_2_AS7/tests/src/org/hornetq/tests/integration/discovery/DiscoveryTest.java	2012-01-22 08:38:10 UTC (rev 12038)
+++ branches/Branch_2_2_AS7/tests/src/org/hornetq/tests/integration/discovery/DiscoveryTest.java	2012-01-23 08:59:32 UTC (rev 12039)
@@ -124,12 +124,16 @@
 
       InetAddress localAddress = null;
 
+      String ignoreInterfaces = System.getProperty("ignoreInterfaces", "");
+
+
       outer: while (networkInterfaces.hasMoreElements())
       {
          NetworkInterface networkInterface = networkInterfaces.nextElement();
          if (networkInterface.isLoopback() || networkInterface.isVirtual() ||
              !networkInterface.isUp() ||
-             !networkInterface.supportsMulticast())
+             !networkInterface.supportsMulticast() ||
+             ignoreInterfaces.contains(networkInterface.getDisplayName())  )
          {
             continue;
          }



More information about the hornetq-commits mailing list