mirror of https://github.com/apache/activemq.git
ensure test won't hang if mbean server never comes alive, just in case
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@705642 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eabb5156ad
commit
329e215a05
|
@ -124,7 +124,7 @@ public class DuplexNetworkMBeanTest extends TestCase {
|
|||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue