Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2404

BadConnectionTest.java hardcodes port 1527

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Test
    • None

    Description

      This test references port 1527; it should use the current test
      configuration's method getPort instead, to make it possible to run
      several tests on the same machine concurrently.

      When I experimented and changed TestConfiguration.DEFAULT_PORT to
      something else but 1527, running suites.All crashed in
      BadConnectionTest.java, and also crashed the JUnit textui.TestRunner
      with this message: "Couldn't get I/O for the connection to:
      localhost". No failure explanation or stack trace was printed on the
      console. Not sure why...

      Running the test separately, the testrunner survived to show the
      failures.

      Attachments

        1. derby-2404-v1.diff
          2 kB
          Samuel Andrew McIntyre
        2. derby-2404-v2.diff
          2 kB
          Samuel Andrew McIntyre

        Activity

          People

            fuzzylogic Samuel Andrew McIntyre
            dagw Dag H. Wanvik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: