activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1348885 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
Date Mon, 11 Jun 2012 14:58:29 GMT
Author: dejanb
Date: Mon Jun 11 14:58:28 2012
New Revision: 1348885

URL: http://svn.apache.org/viewvc?rev=1348885&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3845 - exclude assertion in sync case as ldap connection
close time is unpredictable

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java?rev=1348885&r1=1348884&r2=1348885&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
Mon Jun 11 14:58:28 2012
@@ -289,7 +289,7 @@ public abstract class AbstractCachedLDAP
         map.query();
         if (sync) {
             // ldap connection can be slow to close
-            map.setRefreshInterval(2000);
+            map.setRefreshInterval(1000);
         }
 
         Set<?> failedACLs = map.getReadACLs(new ActiveMQQueue("FAILED"));
@@ -302,8 +302,10 @@ public abstract class AbstractCachedLDAP
 
         Thread.sleep(1000);
 
-        failedACLs = map.getReadACLs(new ActiveMQQueue("TEST.FOO"));
-        assertEquals("set size: " + failedACLs, 2, failedACLs.size());
+        if (!sync) {
+            failedACLs = map.getReadACLs(new ActiveMQQueue("TEST.FOO"));
+            assertEquals("set size: " + failedACLs, 2, failedACLs.size());
+        }
 
         getLdapServer().start();
 



Mime
View raw message