summaryrefslogtreecommitdiff
path: root/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
commitc8f2e652489ca0fab6b4ce15416b16afdcd6b556 (patch)
treea434a0aaf73630fafebd5038e112d7e4efd7f5bc /cpp/src/tests/ClientSessionTest.cpp
parentceca56258e7d3b8aabd2eadbd00857eb69e825f5 (diff)
downloadqpid-python-c8f2e652489ca0fab6b4ce15416b16afdcd6b556.tar.gz
QPID-3629: Changed management of credit window
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1205467 13f79535-47bb-0310-9956-ffa450edef68
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 30441cd03c..1905219bf2 100644
--- a/cpp/src/tests/ClientSessionTest.cpp
+++ b/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();