From cc9358662a401c671b913576c4abf41bd20c7f31 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 9 Apr 2014 14:55:10 +0000 Subject: 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. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1585985 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/ha_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/tests/ha_tests.py b/qpid/cpp/src/tests/ha_tests.py index 6ac7888f93..844856f718 100755 --- a/qpid/cpp/src/tests/ha_tests.py +++ b/qpid/cpp/src/tests/ha_tests.py @@ -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 -- cgit v1.2.1