-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
25
-
os_x
java.lang.AssertionError: expected [true] but found [false]
at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertTrue(Assert.java:45)
at org.testng.Assert.assertTrue(Assert.java:55)
at LdapPoolTimeoutTest.attemptConnect(LdapPoolTimeoutTest.java:131)
at LdapPoolTimeoutTest.lambda$test$7(LdapPoolTimeoutTest.java:99)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.base/java.lang.Thread.run(Thread.java:1447)
----------System.err:(20/1157)----------
MSG RTE: javax.naming.CommunicationException: example.com:1234 [Root exception is java.net.SocketException: Network is unreachable]
MSG: Network is unreachable
MSG: Timed out waiting for lock
MSG: Connect timed out
MSG: Timeout exceeded while waiting for a connection: 12000ms
MSG: Timeout exceeded while waiting for a connection: 12000ms
MSG: Timeout exceeded while waiting for a connection: 12000ms
MSG: null
128: } catch (NamingException ex) {
129: String msg = ex.getCause() == null ? ex.getMessage() : ex.getCause().getMessage();
130: System.err.println("MSG: " + msg);
=> 131: assertTrue(msg != null &&
132: (msg.contains("Network is unreachable")
133: || msg.contains("Timed out waiting for lock")
134: || msg.contains("Connect timed out")
135: || msg.contains("Timeout exceeded while waiting for a connection")));
=> failing assertion
at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertTrue(Assert.java:45)
at org.testng.Assert.assertTrue(Assert.java:55)
at LdapPoolTimeoutTest.attemptConnect(LdapPoolTimeoutTest.java:131)
at LdapPoolTimeoutTest.lambda$test$7(LdapPoolTimeoutTest.java:99)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.base/java.lang.Thread.run(Thread.java:1447)
----------System.err:(20/1157)----------
MSG RTE: javax.naming.CommunicationException: example.com:1234 [Root exception is java.net.SocketException: Network is unreachable]
MSG: Network is unreachable
MSG: Timed out waiting for lock
MSG: Connect timed out
MSG: Timeout exceeded while waiting for a connection: 12000ms
MSG: Timeout exceeded while waiting for a connection: 12000ms
MSG: Timeout exceeded while waiting for a connection: 12000ms
MSG: null
128: } catch (NamingException ex) {
129: String msg = ex.getCause() == null ? ex.getMessage() : ex.getCause().getMessage();
130: System.err.println("MSG: " + msg);
=> 131: assertTrue(msg != null &&
132: (msg.contains("Network is unreachable")
133: || msg.contains("Timed out waiting for lock")
134: || msg.contains("Connect timed out")
135: || msg.contains("Timeout exceeded while waiting for a connection")));
=> failing assertion
- duplicates
-
JDK-8287062 com/sun/jndi/ldap/LdapPoolTimeoutTest.java failed due to different timeout message
-
- Open
-