summaryrefslogtreecommitdiff
path: root/cpp/src/tests/ClientSessionTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/ClientSessionTest.cpp')
-rw-r--r--cpp/src/tests/ClientSessionTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/tests/ClientSessionTest.cpp b/cpp/src/tests/ClientSessionTest.cpp
index 9f68716104..7c58708974 100644
--- a/cpp/src/tests/ClientSessionTest.cpp
+++ b/cpp/src/tests/ClientSessionTest.cpp
@@ -65,6 +65,8 @@ class ClientSessionTest : public CppUnit::TestCase
session.queueDeclare_(queue=queueName, exclusive=true, autoDelete=true);
//subcribe to the queue with confirm_mode = 1:
session.messageSubscribe_(queue=queueName, destination=dest, acquireMode=1);
+ session.messageFlow((destination=dest, unit=0, value=1));//messages
+ session.messageFlow((destination=dest, unit=1, value=0xFFFFFFFF));//bytes
//publish a message:
TransferContent _content(data);
_content.getDeliveryProperties().setRoutingKey("my-queue");