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 d2a640451f1 Fix ClusterStateChangedHandlerTest (#34933)
d2a640451f1 is described below

commit d2a640451f1736074808ef6bcf06b24ca092d6db
Author: Liang Zhang <zhangli...@apache.org>
AuthorDate: Sat Mar 8 06:32:55 2025 +0800

    Fix ClusterStateChangedHandlerTest (#34933)
---
 .../dispatch/handler/global/state/ClusterStateChangedHandlerTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/global/state/ClusterStateChangedHandlerTest.java
 
b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/global/state/ClusterStateChangedHandlerTest.java
index 5f2c6660ae9..6507e6829f0 100644
--- 
a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/global/state/ClusterStateChangedHandlerTest.java
+++ 
b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/global/state/ClusterStateChangedHandlerTest.java
@@ -55,7 +55,7 @@ class ClusterStateChangedHandlerTest {
     
     @Test
     void assertHandleWithInvalidClusterState() {
-        handler.handle(contextManager, new 
DataChangedEvent("/states/cluster_state", "INVALID", Type.UPDATED));
+        handler.handle(contextManager, new 
DataChangedEvent("/states/cluster_state", "", Type.UPDATED));
         verify(contextManager.getStateContext()).switchState(ClusterState.OK);
     }
 }

Reply via email to