summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/ExchangeTest.cpp
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2013-07-01 20:30:05 +0000
committerCharles E. Rolke <chug@apache.org>2013-07-01 20:30:05 +0000
commit5123aada670155155f2f4979e7e9699996b974d8 (patch)
tree38462248430a4330430eefaef8e08fae4234e75b /qpid/cpp/src/tests/ExchangeTest.cpp
parentf4bbaac2bc787793dd7d1c7ab3a2673bbb2d38da (diff)
downloadqpid-python-5123aada670155155f2f4979e7e9699996b974d8.tar.gz
QPID-4969: C++ Broker headers exchange allows creation of bindings
with duplicate keys Patch from Gordon Sim to correct issues in initial fix. Now successive bind requests are accepted when the key, queue, and exchange are identical if and only if all of the binding args are also identical. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1498671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ExchangeTest.cpp')
-rw-r--r--qpid/cpp/src/tests/ExchangeTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/ExchangeTest.cpp b/qpid/cpp/src/tests/ExchangeTest.cpp
index 4f18b91b5a..8c2dbb21c8 100644
--- a/qpid/cpp/src/tests/ExchangeTest.cpp
+++ b/qpid/cpp/src/tests/ExchangeTest.cpp
@@ -138,7 +138,7 @@ QPID_AUTO_TEST_CASE(testIsBound)
args3.setInt("b", 6);
headers.bind(a, "", &args1);
- headers.bind(a, "", &args3);
+ headers.bind(a, "other", &args3);//need to use different binding key to correctly identify second binding
headers.bind(b, "", &args2);
headers.bind(c, "", &args1);