Fixing test that may fail

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1380477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Claus Ibsen 2012-09-04 07:55:05 +00:00
parent f344696a4a
commit 8f207568aa
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ public class TransportConnectorMBeanTest {
}
private Set<ObjectName> getRegisteredMbeans() throws Exception {
// need a little sleep to ensure JMX is up to date
Thread.sleep(200);
return broker.getManagementContext().queryNames(null, null);
}