Hi,
LdapDnsProviderTest test expects to have no services running on 1111
port on test machine. That could cause it to fail intermittently due to
unexpected exception message thrown by LDAP client, i.e. timeout or
disconnect instead of expected connection refusal.
The proposed fix tries to make test more stable ('intermittent' key was
still added) by running test cases with non-default port multiple times
by trying to use different random port numbers ('randomness' key was
added) for each run.
Webrev: http://cr.openjdk.java.net/~aefimov/8237834/00/index.html
JBS: https://bugs.openjdk.java.net/browse/JDK-8237834
Test was not observed to fail for over 300 iterations.
With Best Regards,
Aleksei