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

Some Python tests appear 'racey'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Auto Closed
    • Affects Version/s: 0.14
    • Fix Version/s: None
    • Component/s: Python Test Suite
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              rhs Rafael H. Schloming
              Reporter:
              rgodfrey Robert Godfrey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: