From c8f2e652489ca0fab6b4ce15416b16afdcd6b556 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 23 Nov 2011 16:01:25 +0000 Subject: 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 --- cpp/src/tests/ClientSessionTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src/tests/ClientSessionTest.cpp') 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(); -- cgit v1.2.1