diff options
author | Alan Conway <aconway@apache.org> | 2009-10-08 15:53:33 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-10-08 15:53:33 +0000 |
commit | feaa899a7d655b9360cd68c27cb5ac2c8a96a26c (patch) | |
tree | c8e2c9ffc0054bce5a9f26b61d3d9383e48492c3 /qpid/cpp/src/tests/cluster_test.cpp | |
parent | ddc79bfeedc1d4ccbc2898fd8be82d1a38754e47 (diff) | |
download | qpid-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.cpp | 1 |
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); |