Some Python tests appear 'racey'
--------------------------------
Key: QPID-3863
URL: https://issues.apache.org/jira/browse/QPID-3863
Project: Qpid
Issue Type: Bug
Components: Python Test Suite
Affects Versions: 0.14
Reporter: Rob Godfrey
Assignee: Rafael H. Schloming
Priority: Minor
While looking into QPID-3595, I found that the tests
broker_0_10.new_api.GeneralTests.test_qpid_3481_acquired_to_alt_exchange
normally failed, but occasionally passed against the Java Broker.
looking in more detail, it appeared that the following lines:
sess1.close()
self.assertEqual(rx_alt.available(), 5, "All 5 messages should have
been routed to the alt_exchange")
Were the cause of the issue. At the time the assert is evaluated the broker
may, or may not, have had enough time to send all 5 messages to the client (the
sess1.close() being the trigger for the sending).
For the moment I have put in a simple sleep statement between these lines -
however this is not a proper fix.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.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]