qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r1614331 - /qpid/trunk/qpid/cpp/src/tests/ha_tests.py
Date Tue, 29 Jul 2014 12:56:41 GMT
Author: aconway
Date: Tue Jul 29 12:56:40 2014
New Revision: 1614331

URL: http://svn.apache.org/r1614331
Log:
QPID-5888: Fix test to ignore occasional TransactionAborted failures on connection.close.

Modified:
    qpid/trunk/qpid/cpp/src/tests/ha_tests.py

Modified: qpid/trunk/qpid/cpp/src/tests/ha_tests.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/ha_tests.py?rev=1614331&r1=1614330&r2=1614331&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/ha_tests.py (original)
+++ qpid/trunk/qpid/cpp/src/tests/ha_tests.py Tue Jul 29 12:56:40 2014
@@ -1428,7 +1428,8 @@ class TransactionTests(HaBrokerTest):
             for b in cluster: self.assert_simple_rollback_outcome(b, tx_queues)
             self.assertRaises(qm.TransactionAborted, tx.sync)
             self.assertRaises(qm.TransactionAborted, tx.commit)
-            tx.connection.close()
+            try: tx.connection.close()
+            except qm.TransactionAborted: pass # Occasionally get exception on close.
             for b in cluster: self.assert_simple_rollback_outcome(b, tx_queues)
         finally: l.restore()
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message