diff options
| author | Gordon Sim <gsim@apache.org> | 2008-05-29 11:45:29 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-05-29 11:45:29 +0000 |
| commit | 56694ed82a8132f0985166ab6288a51eaf7c1a76 (patch) | |
| tree | c44830b1f04aed53f46d7d49a140e300a3243047 /qpid/cpp/src/tests/SessionState.cpp | |
| parent | a942be4d82ef71abf6b287c7d5d958982f7fbb2a (diff) | |
| download | qpid-python-56694ed82a8132f0985166ab6288a51eaf7c1a76.tar.gz | |
Only record frames for replay if timeout is non-zero.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@661302 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/SessionState.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/SessionState.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/SessionState.cpp b/qpid/cpp/src/tests/SessionState.cpp index 43b949cfff..51259bac2b 100644 --- a/qpid/cpp/src/tests/SessionState.cpp +++ b/qpid/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"); |
