summaryrefslogtreecommitdiff
path: root/cpp/src/tests/QueueTest.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-08-02 09:51:10 +0000
committerGordon Sim <gsim@apache.org>2010-08-02 09:51:10 +0000
commit3105021bc9cc72152593c1bce615eabf6720995a (patch)
tree223e07f79ff2b26ef7f73778b5980efea3534fd5 /cpp/src/tests/QueueTest.cpp
parent95260bff5756c10d165cce4944152720af9357fe (diff)
downloadqpid-python-3105021bc9cc72152593c1bce615eabf6720995a.tar.gz
Ensure that for clustered broker the queue cleaner is run on the correct thread.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@981435 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/QueueTest.cpp')
-rw-r--r--cpp/src/tests/QueueTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/QueueTest.cpp b/cpp/src/tests/QueueTest.cpp
index 80c69ac386..adc5c0bee7 100644
--- a/cpp/src/tests/QueueTest.cpp
+++ b/cpp/src/tests/QueueTest.cpp
@@ -687,7 +687,7 @@ QPID_AUTO_TEST_CASE(testQueueCleaner) {
addMessagesToQueue(10, *queue, 200, 400);
BOOST_CHECK_EQUAL(queue->getMessageCount(), 10u);
- QueueCleaner cleaner(queues, timer);
+ QueueCleaner cleaner(queues, &timer);
cleaner.start(100 * qpid::sys::TIME_MSEC);
::usleep(300*1000);
BOOST_CHECK_EQUAL(queue->getMessageCount(), 5u);