[TEST] Increase processing delay in LDAP tests (#33410)

SearchGroupsResolverInMemoryTests was (rarely) fail in a way that
suggests that the server-side delay (100ms) was not enough to trigger
the client-side timeout (5ms).

The server side delay has been increased to try and overcome this.

Resolves: #32913
This commit is contained in:
Tim Vernum 2018-09-24 10:37:22 +10:00 committed by GitHub
parent 432e61c971
commit df521c1d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -46,10 +46,10 @@ public class SearchGroupsResolverInMemoryTests extends LdapTestCase {
* than simply returning no results.
*/
public void testSearchTimeoutIsFailure() throws Exception {
ldapServers[0].setProcessingDelayMillis(100);
ldapServers[0].setProcessingDelayMillis(500);
final LDAPConnectionOptions options = new LDAPConnectionOptions();
options.setConnectTimeoutMillis(500);
options.setConnectTimeoutMillis(1500);
options.setResponseTimeoutMillis(5);
connect(options);