提交 9ae685a6 编写于 作者: Z zyyang

fix test case

上级 d56d6c69
...@@ -17,8 +17,7 @@ import java.text.SimpleDateFormat; ...@@ -17,8 +17,7 @@ import java.text.SimpleDateFormat;
public class RestfulResultSetTest { public class RestfulResultSetTest {
// private static final String host = "127.0.0.1"; private static final String host = "127.0.0.1";
private static final String host = "master";
private static Connection conn; private static Connection conn;
private static Statement stmt; private static Statement stmt;
private static ResultSet rs; private static ResultSet rs;
...@@ -676,7 +675,7 @@ public class RestfulResultSetTest { ...@@ -676,7 +675,7 @@ public class RestfulResultSetTest {
public static void afterClass() throws SQLException { public static void afterClass() throws SQLException {
if (rs != null) if (rs != null)
rs.close(); rs.close();
if (stmt != null){ if (stmt != null) {
stmt.execute("drop database if exists restful_test"); stmt.execute("drop database if exists restful_test");
stmt.close(); stmt.close();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册