diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-10-02 15:47:27 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-10-02 15:47:27 +0000 |
commit | 31dbd26d81d3aa7b27616e13c30687f0d012711e (patch) | |
tree | d4c1cba6adcd264bd5fbe96d24c6d4c986981132 /cpp/src/tests/AsyncCompletion.cpp | |
parent | 41dd2087ceaf010f0b1c30b84841b8f532e65ab5 (diff) | |
download | qpid-python-31dbd26d81d3aa7b27616e13c30687f0d012711e.tar.gz |
Applied patches to resolve QPID-2076
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821066 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/AsyncCompletion.cpp')
-rw-r--r-- | cpp/src/tests/AsyncCompletion.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/tests/AsyncCompletion.cpp b/cpp/src/tests/AsyncCompletion.cpp index 4492e6b6bc..e32097106f 100644 --- a/cpp/src/tests/AsyncCompletion.cpp +++ b/cpp/src/tests/AsyncCompletion.cpp @@ -70,9 +70,11 @@ class AsyncCompletionMessageStore : public NullMessageStore { QPID_AUTO_TEST_SUITE(AsyncCompletionTestSuite) QPID_AUTO_TEST_CASE(testWaitTillComplete) { - AsyncCompletionMessageStore* store = new AsyncCompletionMessageStore; SessionFixture fix; - fix.broker->setStore(store); // Broker will delete store. + AsyncCompletionMessageStore* store = new AsyncCompletionMessageStore; + boost::shared_ptr<qpid::broker::MessageStore> p; + p.reset(store); + fix.broker->setStore(p); AsyncSession s = fix.session; static const int count = 3; |