summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2014-07-16 10:19:30 +0000
committerGordon Sim <gsim@apache.org>2014-07-16 10:19:30 +0000
commitc2e9cb0f73de96b620c61c4109ab136a96764a82 (patch)
tree97b31eef26e33b4f77990e1a48c2a2ae7e751f35 /qpid/cpp/src
parentde1ec0610d7dfc789a4fd9dadf8cd479d48478c1 (diff)
downloadqpid-python-c2e9cb0f73de96b620c61c4109ab136a96764a82.tar.gz
QPID-5887: fix to new txtest2, acknowledge messages in the check phase to ensure queues remain drained for any subsequent runs
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1610958 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/tests/qpid-txtest2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/qpid-txtest2.cpp b/qpid/cpp/src/tests/qpid-txtest2.cpp
index a5e3f34a58..6502d1521c 100644
--- a/qpid/cpp/src/tests/qpid-txtest2.cpp
+++ b/qpid/cpp/src/tests/qpid-txtest2.cpp
@@ -258,6 +258,7 @@ struct Controller : public Client
drained.push_back(msg.getCorrelationId());
++count;
}
+ session.acknowledge();
receiver.close();
if (!opts.quiet) std::cout << "Drained " << count << " messages from " << *i << std::endl;
}