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

Python messaging SetupTests.testConnectError false fail on Windows

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.7
    • 0.7
    • Python Test Suite
    • None
    • 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

            shuston Stephen D. Huston
            shuston Stephen D. Huston
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: