mirror of https://github.com/apache/activemq.git
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:
parent
f344696a4a
commit
8f207568aa
|
@ -78,6 +78,8 @@ public class TransportConnectorMBeanTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Set<ObjectName> getRegisteredMbeans() throws Exception {
|
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);
|
return broker.getManagementContext().queryNames(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue