summaryrefslogtreecommitdiff
path: root/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
commit0b1cbacf656563929bcc33224d18eef974f029d3 (patch)
treeacc25196333bdcddfa1fe377d1e4073bc9b3c8d3 /cpp/src/tests/ExchangeTest.cpp
parent5b29decce94580616d1a8cb022355ac567785eb6 (diff)
downloadqpid-python-0b1cbacf656563929bcc33224d18eef974f029d3.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/qpid@1498671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/ExchangeTest.cpp')
-rw-r--r--cpp/src/tests/ExchangeTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/ExchangeTest.cpp b/cpp/src/tests/ExchangeTest.cpp
index 4f18b91b5a..8c2dbb21c8 100644
--- a/cpp/src/tests/ExchangeTest.cpp
+++ b/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);