From 3cadb072adbd7ea1daa38e61ad17995c4d661dfc Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 2 Jun 2008 09:33:58 +0000 Subject: Minor updates to tests: * sync on commit in transactional topic test * disable loading of modules from automated test to preserve isolation * update federated topic test script in line with command line option changes git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662373 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/topic_publisher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests/topic_publisher.cpp') diff --git a/cpp/src/tests/topic_publisher.cpp b/cpp/src/tests/topic_publisher.cpp index c8f0d543ec..0f3406a1fe 100644 --- a/cpp/src/tests/topic_publisher.cpp +++ b/cpp/src/tests/topic_publisher.cpp @@ -171,7 +171,7 @@ int64_t Publisher::publish(int msgs, int listeners, int size){ reportRequest.getHeaders().setString("TYPE", "REPORT_REQUEST"); session.messageTransfer(arg::content=reportRequest, arg::destination="amq.topic", arg::acceptMode=1); if(transactional){ - session.txCommit(); + sync(session).txCommit(); } //wait for a response from each listener (TODO, could log these) for (int i = 0; i < listeners; i++) { @@ -179,7 +179,7 @@ int64_t Publisher::publish(int msgs, int listeners, int size){ } if(transactional){ - session.txCommit(); + sync(session).txCommit(); } AbsTime finish = now(); -- cgit v1.2.1