Skip to content

Commit b9b8263

Browse files
committed
8317307: test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java fails with ConnectException: Connection timed out: no further information
Reviewed-by: clanger
1 parent 0d0a657 commit b9b8263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/com/sun/jndi/ldap/LdapPoolTimeoutTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -124,7 +124,7 @@ private static void attemptConnect(Hashtable<Object, Object> env) throws Excepti
124124
// assertCompletion may wrap a CommunicationException in an RTE
125125
assertNotNull(msg);
126126
assertTrue(msg.contains("Network is unreachable")
127-
|| msg.contains("No route to host"));
127+
|| msg.contains("No route to host") || msg.contains("Connection timed out"));
128128
} catch (NamingException ex) {
129129
String msg = ex.getCause() == null ? ex.getMessage() : ex.getCause().getMessage();
130130
System.err.println("MSG: " + msg);

0 commit comments

Comments
 (0)