Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2510

Python messaging SetupTests.testConnectError false fail on Windows

    Details

    • Type: Test
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: Python Test Suite
    • Labels:
      None
    • Environment:

      Windows

      Description

      The python messaging test messaging.endpoints.SetupTests.testConnectError fails on Windows when it shouldn't. The test compares the stringified error with "Connection refused" but on Windows there are two problems:
      1. Attempting to connect to port 0 yields a bad address, which isn't what we really want
      2. The string result of a refused connect is "No connection could be made because the target machine actively refused it"

      To fix this, change the test port to 4 (which is IANA unassigned) and check the string to include simply "refused".

        Attachments

          Activity

            People

            • Assignee:
              shuston Steve Huston
              Reporter:
              shuston Steve Huston
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: