Today, in ldap_fsm_util.js file, we give the cluster 5 seconds to automatically refresh its LDAP pooled connections after restarting the mock LDAP servers.
We need to give the cluster more time to cover the time of triggering refresh pooled connections and the time of the refresh operation itself. It should be greater than configGenerator.ldapTimeoutMS + configGenerator.ldapConnectionPoolHostRefreshIntervalMillis.