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 211c29c0094 Refactor ComputeNodeOnlineHandlerTest (#34994) 211c29c0094 is described below commit 211c29c00941ab1ae03eb7e63d65e0839ac12f4e Author: Liang Zhang <zhangli...@apache.org> AuthorDate: Fri Mar 14 18:08:34 2025 +0800 Refactor ComputeNodeOnlineHandlerTest (#34994) --- .../handler/global/node/compute/type/ComputeNodeOnlineHandlerTest.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/node/compute/type/ComputeNodeOnlineHandlerTest.java b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/global/node/compute/type/ComputeNodeOnlineHandlerTest.java index fec5b1fc0b6..833d91966ec 100644 --- a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/global/node/compute/type/ComputeNodeOnlineHandlerTest.java +++ b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/global/node/compute/type/ComputeNodeOnlineHandlerTest.java @@ -56,7 +56,7 @@ class ComputeNodeOnlineHandlerTest { @Test void assertHandleWithInvalidInstanceOnlinePath() { handler.handle(contextManager, new DataChangedEvent("/nodes/compute_nodes/online/foo", "{attribute: 127.0.0.1@3307,version: 1}", Type.ADDED)); - verify(contextManager, times(0)).getComputeNodeInstanceContext(); + verify(contextManager.getComputeNodeInstanceContext(), times(0)).getClusterInstanceRegistry(); } @Test