diff --git a/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java b/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java index deb6d5b1d3..d29241d6ba 100644 --- a/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java @@ -288,7 +288,8 @@ public abstract class AbstractCachedLDAPAuthorizationMapLegacyTest extends Abstr public void testRestart(boolean sync) throws Exception { map.query(); if (sync) { - map.setRefreshInterval(1); + // ldap connection can be slow to close + map.setRefreshInterval(2000); } Set failedACLs = map.getReadACLs(new ActiveMQQueue("FAILED"));