Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Auto Closed
-
0.14
-
None
-
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.