summaryrefslogtreecommitdiff
path: root/cpp/src/tests/SessionState.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-05-29 11:45:29 +0000
committerGordon Sim <gsim@apache.org>2008-05-29 11:45:29 +0000
commite4aefee4b6a80f92e5b67f78334833f0c3b3b4e5 (patch)
treeb1e53aff1b7dd612131c659e7d39301a3c99f935 /cpp/src/tests/SessionState.cpp
parent1d61a8fd858901fd9b78b8393a6619ec6d09bae2 (diff)
downloadqpid-python-e4aefee4b6a80f92e5b67f78334833f0c3b3b4e5.tar.gz
Only record frames for replay if timeout is non-zero.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@661302 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/SessionState.cpp')
-rw-r--r--cpp/src/tests/SessionState.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/tests/SessionState.cpp b/cpp/src/tests/SessionState.cpp
index 43b949cfff..51259bac2b 100644
--- a/cpp/src/tests/SessionState.cpp
+++ b/cpp/src/tests/SessionState.cpp
@@ -127,6 +127,7 @@ using qpid::SessionPoint;
QPID_AUTO_TEST_CASE(testSendGetReplyList) {
qpid::SessionState s;
+ s.setTimeout(1);
s.senderGetCommandPoint();
transfer1(s, "abc");
transfers(s, "def");
@@ -142,6 +143,7 @@ QPID_AUTO_TEST_CASE(testNeedFlush) {
// sync after 2 1-byte transfers or equivalent bytes.
c.replayFlushLimit = 2*(transferFrameSize()+contentFrameSize());
qpid::SessionState s(SessionId(), c);
+ s.setTimeout(1);
s.senderGetCommandPoint();
transfers(s, "a");
BOOST_CHECK(!s.senderNeedFlush());
@@ -161,6 +163,7 @@ QPID_AUTO_TEST_CASE(testPeerConfirmed) {
// sync after 2 1-byte transfers or equivalent bytes.
c.replayFlushLimit = 2*(transferFrameSize()+contentFrameSize());
qpid::SessionState s(SessionId(), c);
+ s.setTimeout(1);
s.senderGetCommandPoint();
transfers(s, "ab");
BOOST_CHECK(s.senderNeedFlush());
@@ -191,6 +194,7 @@ QPID_AUTO_TEST_CASE(testPeerConfirmed) {
QPID_AUTO_TEST_CASE(testPeerCompleted) {
qpid::SessionState s;
+ s.setTimeout(1);
s.senderGetCommandPoint();
// Completion implies confirmation
transfers(s, "abc");