activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1425740 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java
Date Tue, 25 Dec 2012 12:03:27 GMT
Author: dejanb
Date: Tue Dec 25 12:03:27 2012
New Revision: 1425740

URL: http://svn.apache.org/viewvc?rev=1425740&view=rev
Log:
fix HealthViewMBeanTest failure when disk space is low

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java?rev=1425740&r1=1425739&r2=1425740&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/HealthViewMBeanTest.java
Tue Dec 25 12:03:27 2012
@@ -91,7 +91,7 @@ public class HealthViewMBeanTest extends
         ObjectName brokerName = assertRegisteredObjectName(domain + ":Type=Health,BrokerName=localhost");
         HealthViewMBean health =  MBeanServerInvocationHandler.newProxyInstance(mbeanServer,
brokerName, HealthViewMBean.class, true);
         List<HealthStatus> list = health.healthList();
-        assertEquals(2,list.size());
+        assertTrue("There should be at least two statuses", list.size() >= 2);
 
     }
 



Mime
View raw message