Skip to content

Commit 3d74404

Browse files
Increase LDAP connection timeout settings to 10s (#88117) (#88147)
AD tests sometimes fail due to a response timeout error. By default connection and response timeouts were set to 5s. This commit is increasing them to 10s.
1 parent 826027e commit 3d74404

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x-pack/qa/third-party/active-directory/src/test/java/org/elasticsearch/xpack/security/authc/ldap/ADLdapUserSearchSessionFactoryTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public void testUserSearchWithActiveDirectory() throws Exception {
7272
.put("user_search.pool.enabled", randomBoolean())
7373
.put("follow_referrals", ActiveDirectorySessionFactoryTests.FOLLOW_REFERRALS)
7474
.put("order", 0)
75+
.put("timeout.tcp_connect", "10s")
76+
.put("timeout.response", "10s")
7577
.build();
7678
Settings.Builder builder = Settings.builder().put(globalSettings);
7779
settings.keySet().forEach(k -> { builder.copy("xpack.security.authc.realms.ldap.ad-as-ldap-test." + k, k, settings); });

0 commit comments

Comments
 (0)