8287672: jtreg test com/sun/jndi/ldap/LdapPoolTimeoutTest.java fails intermittently in nightly run
Reviewed-by: stuefe Backport-of: 7e211d7daac32dca8f26f408d1a3b2c7805b5a2e
This commit is contained in:
parent
dc4edd3fe8
commit
5b5bc6c26e
@ -49,6 +49,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
|
|
||||||
import static jdk.test.lib.Utils.adjustTimeout;
|
import static jdk.test.lib.Utils.adjustTimeout;
|
||||||
import static org.testng.Assert.assertTrue;
|
import static org.testng.Assert.assertTrue;
|
||||||
|
import static org.testng.Assert.assertNotNull;
|
||||||
import static org.testng.Assert.expectThrows;
|
import static org.testng.Assert.expectThrows;
|
||||||
|
|
||||||
public class LdapPoolTimeoutTest {
|
public class LdapPoolTimeoutTest {
|
||||||
@ -121,7 +122,9 @@ public class LdapPoolTimeoutTest {
|
|||||||
String msg = e.getCause() == null ? e.getMessage() : e.getCause().getMessage();
|
String msg = e.getCause() == null ? e.getMessage() : e.getCause().getMessage();
|
||||||
System.err.println("MSG RTE: " + msg);
|
System.err.println("MSG RTE: " + msg);
|
||||||
// assertCompletion may wrap a CommunicationException in an RTE
|
// assertCompletion may wrap a CommunicationException in an RTE
|
||||||
assertTrue(msg != null && msg.contains("Network is unreachable"));
|
assertNotNull(msg);
|
||||||
|
assertTrue(msg.contains("Network is unreachable")
|
||||||
|
|| msg.contains("No route to host"));
|
||||||
} catch (NamingException ex) {
|
} catch (NamingException ex) {
|
||||||
String msg = ex.getCause() == null ? ex.getMessage() : ex.getCause().getMessage();
|
String msg = ex.getCause() == null ? ex.getMessage() : ex.getCause().getMessage();
|
||||||
System.err.println("MSG: " + msg);
|
System.err.println("MSG: " + msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user