You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2014/04/09 16:55:11 UTC
svn commit: r1585985 - /qpid/trunk/qpid/cpp/src/tests/ha_tests.py
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org