Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287062 com/sun/jndi/ldap/LdapPoolTimeoutTest.java failed due to different timeout message
  3. JDK-8355278

Improve debuggability of com/sun/jndi/ldap/LdapPoolTimeoutTest.java test

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • core-libs

      The com/sun/jndi/ldap/LdapPoolTimeoutTest.java test has been intermittently failing for several years now. The test is implemented to expect specific exception types and very specific exception messages in those exceptions. When the exception message doesn't match the expected message, the test fails with an assertion error but it doesn't include the original exception that had an unexpected message in the test failure. This makes it hard to debug the cause of the test failure.

      The test can be improved to propagate the original unexpected exception so that when the test fails, the complete stacktrace is available for debugging the failure.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: