summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/cluster_test.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-10-08 15:53:33 +0000
committerAlan Conway <aconway@apache.org>2009-10-08 15:53:33 +0000
commitfeaa899a7d655b9360cd68c27cb5ac2c8a96a26c (patch)
treec8e2c9ffc0054bce5a9f26b61d3d9383e48492c3 /qpid/cpp/src/tests/cluster_test.cpp
parentddc79bfeedc1d4ccbc2898fd8be82d1a38754e47 (diff)
downloadqpid-python-feaa899a7d655b9360cd68c27cb5ac2c8a96a26c.tar.gz
Fix race condition in testExclusiveQueueUpdate causing occasional false failures.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@823213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cluster_test.cpp')
-rw-r--r--qpid/cpp/src/tests/cluster_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/cluster_test.cpp b/qpid/cpp/src/tests/cluster_test.cpp
index bc7a666c95..247aef1b2a 100644
--- a/qpid/cpp/src/tests/cluster_test.cpp
+++ b/qpid/cpp/src/tests/cluster_test.cpp
@@ -917,6 +917,7 @@ QPID_AUTO_TEST_CASE(testExclusiveQueueUpdate) {
BOOST_CHECK(!result.getDurable());
BOOST_CHECK_EQUAL(result.getAlternateExchange(), std::string("amq.fanout"));
BOOST_CHECK_THROW(c2.session.queueDeclare(arg::queue="q", arg::exclusive=true, arg::passive=true), framing::ResourceLockedException);
+ c1.session.close();
c1.connection.close();
c2.session = c2.connection.newSession();
BOOST_CHECK_THROW(c2.session.queueDeclare(arg::queue="q", arg::passive=true), framing::NotFoundException);