summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/ClientSessionTest.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-11-23 16:01:25 +0000
committerGordon Sim <gsim@apache.org>2011-11-23 16:01:25 +0000
commit77361a62577d5932329073896a4d481d29facc68 (patch)
tree74fcdd9cfd20bf62fac87466286da96a3c1c11f4 /qpid/cpp/src/tests/ClientSessionTest.cpp
parent48ee4dc0826d5daa864707ae46a5d3d0616fe884 (diff)
downloadqpid-python-77361a62577d5932329073896a4d481d29facc68.tar.gz
QPID-3629: Changed management of credit window
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1205467 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ClientSessionTest.cpp')
-rw-r--r--qpid/cpp/src/tests/ClientSessionTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/ClientSessionTest.cpp b/qpid/cpp/src/tests/ClientSessionTest.cpp
index 30441cd03c..1905219bf2 100644
--- a/qpid/cpp/src/tests/ClientSessionTest.cpp
+++ b/qpid/cpp/src/tests/ClientSessionTest.cpp
@@ -354,6 +354,8 @@ QPID_AUTO_TEST_CASE(testCompleteOnAccept) {
BOOST_CHECK(!q.get(m));
s.accept(accepted);
+ //need to reallocate credit as we have flushed it all out
+ s.setFlowControl(FlowControl::messageWindow(chunk));
fix.session.messageFlush(arg::destination=s.getName());
accepted.clear();