You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2024/03/14 00:26:00 UTC
(activemq-artemis) branch main updated: ARTEMIS-4652 Adapting test to not throw XA_RETRY as requested
This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 32138d64e4 ARTEMIS-4652 Adapting test to not throw XA_RETRY as requested
32138d64e4 is described below
commit 32138d64e4e9635b4daf43824a4a5a4bd3b840cd
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Wed Mar 13 20:25:03 2024 -0400
ARTEMIS-4652 Adapting test to not throw XA_RETRY as requested
---
.../org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java
index 6b366f9113..be2f98e7a6 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/xa/BasicXaTest.java
@@ -476,7 +476,7 @@ public class BasicXaTest extends ActiveMQTestBase {
clientSession.rollback(xid);
Assert.fail("Exception exptected");
} catch (XAException e) {
- Assert.assertTrue(e.errorCode == XAException.XA_RETRY);
+ Assert.assertTrue(e.errorCode == XAException.XAER_RMFAIL);
}
}