Skip to content

Commit

Permalink
[TEST] Increase processing delay in LDAP tests (#33410)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tvernum committed Sep 26, 2018
1 parent 75c454c commit 910d1fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public void closeConnection() {
* 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);

Expand Down

0 comments on commit 910d1fc

Please sign in to comment.