This is an automated email from the ASF dual-hosted git repository.

panjuan 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 249512e  Remove unit test errors
     new 8e5e83b  Merge pull request #7022 from menghaoranss/fix-unit-error
249512e is described below

commit 249512eacfd9c23712172dccf0a6766fff4dec72
Author: menghaoranss <[email protected]>
AuthorDate: Mon Aug 24 14:28:42 2020 +0800

    Remove unit test errors
---
 .../shardingsphere/cluster/heartbeat/detect/HeartbeatHandlerTest.java  | 3 ---
 1 file changed, 3 deletions(-)

diff --git 
a/shardingsphere-control-panel/shardingsphere-cluster/shardingsphere-cluster-heartbeat/src/test/java/org/apache/shardingsphere/cluster/heartbeat/detect/HeartbeatHandlerTest.java
 
b/shardingsphere-control-panel/shardingsphere-cluster/shardingsphere-cluster-heartbeat/src/test/java/org/apache/shardingsphere/cluster/heartbeat/detect/HeartbeatHandlerTest.java
index 961d74e..a2b356e 100644
--- 
a/shardingsphere-control-panel/shardingsphere-cluster/shardingsphere-cluster-heartbeat/src/test/java/org/apache/shardingsphere/cluster/heartbeat/detect/HeartbeatHandlerTest.java
+++ 
b/shardingsphere-control-panel/shardingsphere-cluster/shardingsphere-cluster-heartbeat/src/test/java/org/apache/shardingsphere/cluster/heartbeat/detect/HeartbeatHandlerTest.java
@@ -43,7 +43,6 @@ import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertThat;
 import static org.junit.Assert.assertTrue;
-import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -205,8 +204,6 @@ public final class HeartbeatHandlerTest {
         if (enableExecuteQuery) {
             when(result.executeQuery()).thenReturn(resultSet);
             when(resultSet.next()).thenReturn(true);
-        } else {
-            doThrow(SQLException.class).when(result).executeQuery();
         }
         return result;
     }

Reply via email to