AMQ-8189 add wait time to CachedLDAPAuthorizationModuleTest

This commit is contained in:
charlie-aws 2021-03-25 13:05:37 -07:00
parent fc0999cc87
commit 30986e372c
1 changed files with 3 additions and 3 deletions

View File

@ -312,7 +312,7 @@ public abstract class AbstractCachedLDAPAuthorizationMapLegacyTest extends Abstr
getLdapServer().stop(); getLdapServer().stop();
// wait for the context to be closed // 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() { Wait.waitFor(new Wait.Condition() {
@Override @Override
public boolean isSatisified() throws Exception { public boolean isSatisified() throws Exception {
@ -322,7 +322,7 @@ public abstract class AbstractCachedLDAPAuthorizationMapLegacyTest extends Abstr
return map.context == null; return map.context == null;
} }
} }
}); }, 5*60*1000);
failedACLs = map.getReadACLs(new ActiveMQQueue("TEST.FOO")); failedACLs = map.getReadACLs(new ActiveMQQueue("TEST.FOO"));
assertEquals("set size: " + failedACLs, 2, failedACLs.size()); assertEquals("set size: " + failedACLs, 2, failedACLs.size());
@ -347,7 +347,7 @@ public abstract class AbstractCachedLDAPAuthorizationMapLegacyTest extends Abstr
public boolean isSatisified() throws Exception { public boolean isSatisified() throws Exception {
return map.getReadACLs(new ActiveMQQueue("FAILED")).size() == 2; return map.getReadACLs(new ActiveMQQueue("FAILED")).size() == 2;
} }
})); }, 5*60*1000));
} }
protected SimpleCachedLDAPAuthorizationMap createMap() { protected SimpleCachedLDAPAuthorizationMap createMap() {