Merge pull request #641 from Charlie-chenchrl/AMQ-8189

AMQ-8189 add wait time to CachedLDAPAuthorizationModuleTest
This commit is contained in:
Jean-Baptiste Onofré 2021-03-27 07:04:09 +01:00 committed by GitHub
commit d913cab49e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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() {