activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r705642 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/DuplexNetworkMBeanTest.java
Date Fri, 17 Oct 2008 15:23:12 GMT
Author: gtully
Date: Fri Oct 17 08:23:11 2008
New Revision: 705642

URL: http://svn.apache.org/viewvc?rev=705642&view=rev
Log:
ensure test won't hang if mbean server never comes alive, just in case

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/DuplexNetworkMBeanTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/DuplexNetworkMBeanTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/DuplexNetworkMBeanTest.java?rev=705642&r1=705641&r2=705642&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/DuplexNetworkMBeanTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/network/DuplexNetworkMBeanTest.java
Fri Oct 17 08:23:11 2008
@@ -124,7 +124,7 @@
             if (mbsc != null) {
                 mbeans = mbsc.queryMBeans(beanName, null);
             }
-        } while (mbeans == null || mbeans.isEmpty() && expiryTime > System.currentTimeMillis());
+        } while ((mbeans == null || mbeans.isEmpty()) && expiryTime > System.currentTimeMillis());
         return mbeans.size();
     }
 



Mime
View raw message