From 8f9055bebd3252c231f9c0fcd2018d03f7afc20a Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 13 Apr 2010 18:28:34 +0000 Subject: fixed a hang in commit and added testDoubleCommit git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933734 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/tests/messaging/endpoints.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'python/qpid/tests') diff --git a/python/qpid/tests/messaging/endpoints.py b/python/qpid/tests/messaging/endpoints.py index 6a5cecf3b1..91940a881e 100644 --- a/python/qpid/tests/messaging/endpoints.py +++ b/python/qpid/tests/messaging/endpoints.py @@ -483,6 +483,18 @@ class SessionTests(Base): def testRollbackAck(self): self.txTestAck(False) + def testDoubleCommit(self): + ssn = self.conn.session(transactional=True) + snd = ssn.sender("amq.direct") + rcv = ssn.receiver("amq.direct") + msgs = [self.message("testDoubleCommit", i) for i in range(3)] + for m in msgs: + snd.send(m) + ssn.commit() + self.drain(rcv, expected=msgs) + ssn.acknowledge() + ssn.commit() + def testClose(self): self.ssn.close() try: -- cgit v1.2.1