This is an automated email from the ASF dual-hosted git repository.
maple pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git
The following commit(s) were added to refs/heads/2.x by this push:
new 8536df526c test: fix `ClusterWatcherManagerTest` (#7785)
8536df526c is described below
commit 8536df526cd8368bc30befe9d16fd0ba277b06de
Author: lokidundun <[email protected]>
AuthorDate: Sat Nov 15 21:45:23 2025 +0800
test: fix `ClusterWatcherManagerTest` (#7785)
---
changes/en-us/2.x.md | 1 +
changes/zh-cn/2.x.md | 1 +
.../java/org/apache/seata/namingserver/ClusterWatcherManagerTest.java | 4 ++--
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 79e8737c6c..aab175dbe3 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -51,6 +51,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7749](https://github.com/apache/incubator-seata/pull/7749)] fix error
parsing application/x-www-form-urlencoded requests in Http2HttpHandler
- [[#7761](https://github.com/apache/incubator-seata/pull/7761)] special
handling is applied to the Byte[] type to ensure the correct primary key value
- [[#7771](https://github.com/apache/incubator-seata/pull/7771)] Shentongdata
xa mode should be hold the same connection
+- [[#7785](https://github.com/apache/incubator-seata/pull/7785)] fix the
failure test
### optimize:
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 8f57b4776f..3774714a66 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -51,6 +51,7 @@
- [[#7749](https://github.com/apache/incubator-seata/pull/7749)] 修复
Http2HttpHandler 解析 application/x-www-form-urlencoded 请求失败的问题
- [[#7761](https://github.com/apache/incubator-seata/pull/7761)] 对 Byte[]
类型进行了特殊处理,以确保主键值正确
- [[#7771](https://github.com/apache/incubator-seata/pull/7771)]
确保神通XA模式相同的事务使用相同的XAConnection
+- [[#7785](https://github.com/apache/incubator-seata/pull/7785)] 修复失败的测试方法
### optimize:
diff --git
a/namingserver/src/test/java/org/apache/seata/namingserver/ClusterWatcherManagerTest.java
b/namingserver/src/test/java/org/apache/seata/namingserver/ClusterWatcherManagerTest.java
index 51731a26f1..8b41c068bf 100644
---
a/namingserver/src/test/java/org/apache/seata/namingserver/ClusterWatcherManagerTest.java
+++
b/namingserver/src/test/java/org/apache/seata/namingserver/ClusterWatcherManagerTest.java
@@ -223,9 +223,9 @@ public class ClusterWatcherManagerTest {
@Test
void testScheduledTaskReRegisterNonTimeoutWatcher() throws
InterruptedException {
- long timeout = System.currentTimeMillis() + 3000;
+ int timeoutDuration = 3000;
Watcher<AsyncContext> watcher =
- new Watcher<>(TEST_GROUP, asyncContext, (int) timeout,
TEST_TERM, TEST_CLIENT_ENDPOINT);
+ new Watcher<>(TEST_GROUP, asyncContext, timeoutDuration,
TEST_TERM, TEST_CLIENT_ENDPOINT);
clusterWatcherManager.registryWatcher(watcher);
clusterWatcherManager.init();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]