Skip to content

Commit 910d1fc

Browse files
committed
[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
1 parent 75c454c commit 910d1fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ldap/SearchGroupsResolverInMemoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public void closeConnection() {
4646
* than simply returning no results.
4747
*/
4848
public void testSearchTimeoutIsFailure() throws Exception {
49-
ldapServers[0].setProcessingDelayMillis(100);
49+
ldapServers[0].setProcessingDelayMillis(500);
5050

5151
final LDAPConnectionOptions options = new LDAPConnectionOptions();
52-
options.setConnectTimeoutMillis(500);
52+
options.setConnectTimeoutMillis(1500);
5353
options.setResponseTimeoutMillis(5);
5454
connect(options);
5555

0 commit comments

Comments
 (0)