mirror of https://github.com/apache/activemq.git
Merge pull request #641 from Charlie-chenchrl/AMQ-8189
AMQ-8189 add wait time to CachedLDAPAuthorizationModuleTest
This commit is contained in:
commit
d913cab49e
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue