diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2009-11-09 18:41:36 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2009-11-09 18:41:36 +0000 |
commit | 5801ede4cd403953c0b809c8b2efdbc77fe0e371 (patch) | |
tree | da155eea89966133c075e247a06295220bb01df6 /cpp/src/tests/QueueTest.cpp | |
parent | d67b869a335e14a6713fcf59cb65b0f05669bb40 (diff) | |
download | qpid-python-5801ede4cd403953c0b809c8b2efdbc77fe0e371.tar.gz |
remove looping for position search and replace with stl algorithms for better performance
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/QueueTest.cpp')
-rw-r--r-- | cpp/src/tests/QueueTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/tests/QueueTest.cpp b/cpp/src/tests/QueueTest.cpp index 3cfaa763ca..e1645d97e3 100644 --- a/cpp/src/tests/QueueTest.cpp +++ b/cpp/src/tests/QueueTest.cpp @@ -120,9 +120,10 @@ QPID_AUTO_TEST_CASE(testAsyncMessageCount){ queue->process(msg1); sleep(2); uint32_t compval=0; - BOOST_CHECK_EQUAL(compval, queue->getMessageCount()); + BOOST_CHECK_EQUAL(compval, queue->getEnqueueCompleteMessageCount()); msg1->enqueueComplete(); compval=1; + BOOST_CHECK_EQUAL(compval, queue->getEnqueueCompleteMessageCount()); BOOST_CHECK_EQUAL(compval, queue->getMessageCount()); } |