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:
Gary Tully 2008-10-17 15:23:11 +00:00
parent eabb5156ad
commit 329e215a05
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}