diff options
Diffstat (limited to 'cpp/src/tests/TxAckTest.cpp')
-rw-r--r-- | cpp/src/tests/TxAckTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/tests/TxAckTest.cpp b/cpp/src/tests/TxAckTest.cpp index 89a907d495..65426e4e21 100644 --- a/cpp/src/tests/TxAckTest.cpp +++ b/cpp/src/tests/TxAckTest.cpp @@ -76,7 +76,9 @@ public: msg->getProperties<DeliveryProperties>()->setDeliveryMode(PERSISTENT); msg->getProperties<DeliveryProperties>()->setRoutingKey("routing_key"); messages.push_back(msg); - deliveries.push_back(DeliveryRecord(msg, queue, "xyz", (i+1))); + QueuedMessage qm; + qm.payload = msg; + deliveries.push_back(DeliveryRecord(qm, queue, "xyz", (i+1))); } //assume msgs 1-5, 7 and 9 are all acked (i.e. 6, 8 & 10 are not) |