diff options
| author | Alan Conway <aconway@apache.org> | 2014-04-09 14:55:10 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2014-04-09 14:55:10 +0000 |
| commit | cc9358662a401c671b913576c4abf41bd20c7f31 (patch) | |
| tree | 39214c6fc3718b5917e89e0469d44fe047494762 /qpid/cpp | |
| parent | f2ed5bb3b4a1c10ad81818a44e3f2b73983007db (diff) | |
| download | qpid-python-cc9358662a401c671b913576c4abf41bd20c7f31.tar.gz | |
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
Diffstat (limited to 'qpid/cpp')
| -rwxr-xr-x | qpid/cpp/src/tests/ha_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
