Skip to content

Commit 211c29c

Browse files
authored
Refactor ComputeNodeOnlineHandlerTest (#34994)
1 parent 88010aa commit 211c29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/dispatch/handler/global/node/compute/type/ComputeNodeOnlineHandlerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void setUp() {
5656
@Test
5757
void assertHandleWithInvalidInstanceOnlinePath() {
5858
handler.handle(contextManager, new DataChangedEvent("/nodes/compute_nodes/online/foo", "{attribute: 127.0.0.1@3307,version: 1}", Type.ADDED));
59-
verify(contextManager, times(0)).getComputeNodeInstanceContext();
59+
verify(contextManager.getComputeNodeInstanceContext(), times(0)).getClusterInstanceRegistry();
6060
}
6161

6262
@Test

0 commit comments

Comments
 (0)