Skip to content

Commit

Permalink
Increase LDAP connection timeout settings to 10s (#88117) (#88147)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slobodanadamovic committed Jun 29, 2022
1 parent 826027e commit 3d74404
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public void testUserSearchWithActiveDirectory() throws Exception {
.put("user_search.pool.enabled", randomBoolean())
.put("follow_referrals", ActiveDirectorySessionFactoryTests.FOLLOW_REFERRALS)
.put("order", 0)
.put("timeout.tcp_connect", "10s")
.put("timeout.response", "10s")
.build();
Settings.Builder builder = Settings.builder().put(globalSettings);
settings.keySet().forEach(k -> { builder.copy("xpack.security.authc.realms.ldap.ad-as-ldap-test." + k, k, settings); });
Expand Down

0 comments on commit 3d74404

Please sign in to comment.