diff options
author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2011-10-12 17:42:27 +0000 |
---|---|---|
committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2011-10-12 17:42:27 +0000 |
commit | 23a0d956ffa79aa3e3fbf43e3755f1cea387b562 (patch) | |
tree | 34ff95f37feb436b970715bd89975747075e07b2 /cpp/src/tests/QueueTest.cpp | |
parent | f821fb7fae3c74d8662e7783b255d52c785961f5 (diff) | |
download | qpid-python-23a0d956ffa79aa3e3fbf43e3755f1cea387b562.tar.gz |
QPID-3417: C++ broker - support adding arrival timestamp to received messages.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1182490 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/QueueTest.cpp')
-rw-r--r-- | cpp/src/tests/QueueTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/QueueTest.cpp b/cpp/src/tests/QueueTest.cpp index 7bf061ff54..1a701e8a8c 100644 --- a/cpp/src/tests/QueueTest.cpp +++ b/cpp/src/tests/QueueTest.cpp @@ -672,7 +672,7 @@ void addMessagesToQueue(uint count, Queue& queue, uint oddTtl = 200, uint evenTt { for (uint i = 0; i < count; i++) { intrusive_ptr<Message> m = create_message("exchange", "key", i % 2 ? oddTtl : evenTtl); - m->setTimestamp(new broker::ExpiryPolicy); + m->computeExpiration(new broker::ExpiryPolicy); queue.deliver(m); } } |