Python messaging SetupTests.testConnectError false fail on Windows
------------------------------------------------------------------
Key: QPID-2510
URL: https://issues.apache.org/jira/browse/QPID-2510
Project: Qpid
Issue Type: Test
Components: Python Test Suite
Affects Versions: 0.7
Environment: Windows
Reporter: Steve Huston
Assignee: Steve Huston
Priority: Minor
Fix For: 0.7
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".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]