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 | bdefa56cae58cdbef08a6c9023a82368e1e9d322 (patch) | |
tree | adfb3bcc3b8976919fe6917781c062a71e15951f /cpp | |
parent | f03a94f4e731f79fcad2c9e8e2f2a874c667cd6a (diff) | |
download | qpid-python-bdefa56cae58cdbef08a6c9023a82368e1e9d322.tar.gz |
Fix race condition in testExclusiveQueueUpdate causing occasional false failures.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@823213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/tests/cluster_test.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/tests/cluster_test.cpp b/cpp/src/tests/cluster_test.cpp index bc7a666c95..247aef1b2a 100644 --- a/cpp/src/tests/cluster_test.cpp +++ b/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); |