diff options
| author | Gordon Sim <gsim@apache.org> | 2008-07-25 13:50:32 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-07-25 13:50:32 +0000 |
| commit | 62d216a681b0c7e4139a742708ab838a7b81a680 (patch) | |
| tree | 3fb377098ec6422f09b2f8ee10a8c55273f344e0 /qpid/cpp/src/tests/QueueTest.cpp | |
| parent | 4cf129a6d63a126a80e816547480374c03646f82 (diff) | |
| download | qpid-python-62d216a681b0c7e4139a742708ab838a7b81a680.tar.gz | |
Only reduce count and size maintained for queue plicy when messages are actually dequeued (i.e. acked).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@679805 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/QueueTest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/QueueTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/QueueTest.cpp b/qpid/cpp/src/tests/QueueTest.cpp index 39696707f4..20b3d90eb6 100644 --- a/qpid/cpp/src/tests/QueueTest.cpp +++ b/qpid/cpp/src/tests/QueueTest.cpp @@ -91,7 +91,7 @@ QPID_AUTO_TEST_CASE(testAsyncMessage) { BOOST_CHECK(!c1.received); msg1->enqueueComplete(); - received = queue->dequeue().payload; + received = queue->get().payload; BOOST_CHECK_EQUAL(msg1.get(), received.get()); } @@ -179,11 +179,11 @@ QPID_AUTO_TEST_CASE(testDequeue){ BOOST_CHECK_EQUAL(uint32_t(3), queue->getMessageCount()); - received = queue->dequeue().payload; + received = queue->get().payload; BOOST_CHECK_EQUAL(msg1.get(), received.get()); BOOST_CHECK_EQUAL(uint32_t(2), queue->getMessageCount()); - received = queue->dequeue().payload; + received = queue->get().payload; BOOST_CHECK_EQUAL(msg2.get(), received.get()); BOOST_CHECK_EQUAL(uint32_t(1), queue->getMessageCount()); @@ -196,7 +196,7 @@ QPID_AUTO_TEST_CASE(testDequeue){ BOOST_CHECK_EQUAL(msg3.get(), consumer.last.get()); BOOST_CHECK_EQUAL(uint32_t(0), queue->getMessageCount()); - received = queue->dequeue().payload; + received = queue->get().payload; BOOST_CHECK(!received); BOOST_CHECK_EQUAL(uint32_t(0), queue->getMessageCount()); |
