Author: aconway
Date: Wed Apr  9 14:55:10 2014
New Revision: 1585985

URL: http://svn.apache.org/r1585985
Log:
QPID-5560: Fix ReplicationTests.test_reject to work with SWIG and native 
clients.

Catch more general LinkError rather than TargetCapacityExceeded which is only 
raised by native client.

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=1585985&r1=1585984&r2=1585985&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/ha_tests.py (original)
+++ qpid/trunk/qpid/cpp/src/tests/ha_tests.py Wed Apr  9 14:55:10 2014
@@ -405,7 +405,7 @@ class ReplicationTests(HaBrokerTest):
         s = primary.connect().session().sender("q; {create:always, 
node:{x-declare:{arguments:{'qpid.policy_type':reject, 'qpid.max_count':5}}}}")
         try:
             for i in range(10): s.send(qm.Message(str(i)), sync=False)
-        except qm.TargetCapacityExceeded: pass
+        except qm.LinkError: pass
         backup.assert_browse_backup("q", [str(i) for i in range(0,5)])
         try: s.session.connection.close()
         except: pass            # Expect exception from broken session



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to