summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/tests')
-rw-r--r--qpid/cpp/src/tests/client_test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/client_test.cpp b/qpid/cpp/src/tests/client_test.cpp
index 3b8a3a2ee6..cefc4338eb 100644
--- a/qpid/cpp/src/tests/client_test.cpp
+++ b/qpid/cpp/src/tests/client_test.cpp
@@ -35,6 +35,7 @@
#include "qpid/client/ClientMessage.h"
#include "qpid/client/MessageListener.h"
#include "qpid/sys/Monitor.h"
+#include "qpid/sys/Time.h"
using namespace qpid::client;
using namespace qpid::sys;
@@ -117,6 +118,11 @@ int main(int argc, char** argv)
msg.setData(data);
channel.publish(msg, exchange, "MyTopic");
if (opts.trace) std::cout << "Published message: " << data << std::endl;
+ if (opts.trace) {
+ std::cout << "Publication "
+ << (channel.synchWithServer(qpid::sys::TIME_SEC * 1) ? " DID " : " did NOT ")
+ << "complete" << std::endl;
+ }
{
Monitor::ScopedLock l(monitor);