Repository: qpid-jms
Updated Branches:
  refs/heads/master 88a77984d -> b35e2f504


QPIDJMS-207 Fix test failure

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/b35e2f50
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/b35e2f50
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/b35e2f50

Branch: refs/heads/master
Commit: b35e2f50450aeab3ed001a43f69b932d91a2e295
Parents: 88a7798
Author: Timothy Bish <[email protected]>
Authored: Fri Dec 9 17:46:19 2016 -0500
Committer: Timothy Bish <[email protected]>
Committed: Fri Dec 9 17:46:19 2016 -0500

----------------------------------------------------------------------
 .../qpid/jms/integration/TransactionsIntegrationTest.java      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b35e2f50/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/TransactionsIntegrationTest.java
----------------------------------------------------------------------
diff --git 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/TransactionsIntegrationTest.java
 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/TransactionsIntegrationTest.java
index e91229b..1da46f5 100644
--- 
a/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/TransactionsIntegrationTest.java
+++ 
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/TransactionsIntegrationTest.java
@@ -1321,7 +1321,11 @@ public class TransactionsIntegrationTest extends 
QpidJmsTestCase {
             testPeer.expectDischarge(txnId, true);
             testPeer.expectClose();
 
-            session.rollback();
+            try {
+                session.rollback();
+                fail("Should throw a timed out exception");
+            } catch (JmsOperationTimedOutException jmsEx) {}
+
             connection.close();
 
             testPeer.waitForAllHandlersToComplete(1000);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to