You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2021/03/31 13:43:50 UTC

[activemq] 01/02: AMQ-8189 add wait time to CachedLDAPAuthorizationModuleTest

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch activemq-5.15.x
in repository https://gitbox.apache.org/repos/asf/activemq.git

commit df0a3d9a3e1c8488cd4560535d9e7dbde3486687
Author: charlie-aws <ch...@amazon.com>
AuthorDate: Thu Mar 25 13:05:37 2021 -0700

    AMQ-8189 add wait time to CachedLDAPAuthorizationModuleTest
    
    (cherry picked from commit 30986e372cd32f7344e972c266adc901885b63d1)
---
 .../security/AbstractCachedLDAPAuthorizationMapLegacyTest.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
index fd4ffe7..39f91cb 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/security/AbstractCachedLDAPAuthorizationMapLegacyTest.java
@@ -312,7 +312,7 @@ public abstract class AbstractCachedLDAPAuthorizationMapLegacyTest extends Abstr
         getLdapServer().stop();
 
         // wait for the context to be closed
-        // as we can't rely on ldar server isStarted()
+        // as we can't rely on ldap server isStarted()
         Wait.waitFor(new Wait.Condition() {
             @Override
             public boolean isSatisified() throws Exception {
@@ -322,7 +322,7 @@ public abstract class AbstractCachedLDAPAuthorizationMapLegacyTest extends Abstr
                     return map.context == null;
                 }
             }
-        });
+        }, 5*60*1000);
 
         failedACLs = map.getReadACLs(new ActiveMQQueue("TEST.FOO"));
         assertEquals("set size: " + failedACLs, 2, failedACLs.size());
@@ -347,7 +347,7 @@ public abstract class AbstractCachedLDAPAuthorizationMapLegacyTest extends Abstr
             public boolean isSatisified() throws Exception {
                 return map.getReadACLs(new ActiveMQQueue("FAILED")).size() == 2;
             }
-        }));
+        }, 5*60*1000));
     }
 
     protected SimpleCachedLDAPAuthorizationMap createMap() {