diff options
author | Arnaud Simon <arnaudsimon@apache.org> | 2008-05-29 08:57:48 +0000 |
---|---|---|
committer | Arnaud Simon <arnaudsimon@apache.org> | 2008-05-29 08:57:48 +0000 |
commit | a942be4d82ef71abf6b287c7d5d958982f7fbb2a (patch) | |
tree | ff01099970fbc53ed194bf42c4420b160b6b16ed /qpid/java | |
parent | eafae6d220b0368011883277f4368b16d1fcbb7e (diff) | |
download | qpid-python-a942be4d82ef71abf6b287c7d5d958982f7fbb2a.tar.gz |
QPID-1094: added finally close for cleaning potential indoubt tx
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@661267 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r-- | qpid/java/client/src/test/java/org/apache/qpid/test/unit/xa/FaultTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/xa/FaultTest.java b/qpid/java/client/src/test/java/org/apache/qpid/test/unit/xa/FaultTest.java index 49a434518d..8f291897eb 100644 --- a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/xa/FaultTest.java +++ b/qpid/java/client/src/test/java/org/apache/qpid/test/unit/xa/FaultTest.java @@ -388,6 +388,17 @@ public class FaultTest extends AbstractXATestCase { fail("Caught wrong exception, expected XAException, got: " + ex); } + finally + { + try + { + _xaResource.commit(xid, false); + } + catch (XAException e) + { + fail("Cannot commit prepared tx: " + e); + } + } } /** |