You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2024/12/31 17:17:43 UTC

(shardingsphere) branch master updated: Refactor KillProcessHandlerTest (#34215)

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 af462985316 Refactor KillProcessHandlerTest (#34215)
af462985316 is described below

commit af462985316617e295769694e98a99ccc11de71f
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Wed Jan 1 01:17:37 2025 +0800

    Refactor KillProcessHandlerTest (#34215)
---
 .../cluster/event/dispatch/handler/type/KillProcessHandlerTest.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/event/dispatch/handler/type/KillProcessHandlerTest.java b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/event/dispatch/handler/type/KillProcessHandlerTest.java
index 990844db791..a9e7a7936c6 100644
--- a/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/event/dispatch/handler/type/KillProcessHandlerTest.java
+++ b/mode/type/cluster/core/src/test/java/org/apache/shardingsphere/mode/manager/cluster/event/dispatch/handler/type/KillProcessHandlerTest.java
@@ -33,8 +33,6 @@ import org.mockito.Mock;
 import org.mockito.junit.jupiter.MockitoSettings;
 import org.mockito.quality.Strictness;
 
-import java.sql.SQLException;
-
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
@@ -58,7 +56,7 @@ class KillProcessHandlerTest {
     }
     
     @Test
-    void assertHandleWithInvalidKillProcessListTriggerEventKey() throws SQLException {
+    void assertHandleWithInvalidKillProcessListTriggerEventKey() {
         handler.handle(contextManager, new DataChangedEvent("/nodes/compute_nodes/kill_process_trigger/foo_instance_id", "", Type.DELETED));
         verify(ProcessOperationLockRegistry.getInstance(), times(0)).notify(any());
     }