未验证 提交 8e5e83b4 编写于 作者: J Juan Pan(Trista) 提交者: GitHub

Merge pull request #7022 from menghaoranss/fix-unit-error

Fixes heartbeat unit test errors
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册