This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 96f90cb9271 Refactor SwitchingTransactionRuleTestCase (#34253)
96f90cb9271 is described below
commit 96f90cb9271061e98728775849bc127c6185524b
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Jan 5 11:52:46 2025 +0800
Refactor SwitchingTransactionRuleTestCase (#34253)
---
.../cases/alterresource/SwitchingTransactionRuleTestCase.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/alterresource/SwitchingTransactionRuleTestCase.java
b/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/alterresource/SwitchingTransactionRuleTestCase.java
index 1e9bf84b66d..cb4c9881a4b 100644
---
a/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/alterresource/SwitchingTransactionRuleTestCase.java
+++
b/test/e2e/operation/transaction/src/test/java/org/apache/shardingsphere/test/e2e/transaction/cases/alterresource/SwitchingTransactionRuleTestCase.java
@@ -53,7 +53,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
* Switching transaction rule test case.
*/
@Slf4j
-@TransactionTestCase(adapters = TransactionTestConstants.PROXY, dbTypes =
TransactionTestConstants.MYSQL)
+@TransactionTestCase(adapters = TransactionTestConstants.PROXY, dbTypes =
TransactionTestConstants.MYSQL, transactionTypes = TransactionType.LOCAL)
public final class SwitchingTransactionRuleTestCase extends
BaseTransactionTestCase {
private static final int THREAD_SIZE = 1;
@@ -108,6 +108,7 @@ public final class SwitchingTransactionRuleTestCase extends
BaseTransactionTestC
Awaitility.await().atMost(20L,
TimeUnit.SECONDS).pollInterval(19L, TimeUnit.SECONDS).until(() -> true);
alterXaTransactionRule("Narayana");
if (SWITCH_COUNT.incrementAndGet() >= MAX_SWITCH_COUNT) {
+ alterLocalTransactionRule();
IS_FINISHED.set(true);
break;
}