提交 b2c62e65 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 b9f01f8b
...@@ -45,7 +45,7 @@ public class TestOutOfMemory extends TestBase { ...@@ -45,7 +45,7 @@ public class TestOutOfMemory extends TestBase {
list = null; list = null;
ResultSet rs = stat.executeQuery("select count(*) from stuff"); ResultSet rs = stat.executeQuery("select count(*) from stuff");
rs.next(); rs.next();
assertEquals(1000, rs.getInt(1)); assertEquals(2000, rs.getInt(1));
conn.close(); conn.close();
} }
......
...@@ -50,8 +50,8 @@ public class TestAutoServer extends TestBase { ...@@ -50,8 +50,8 @@ public class TestAutoServer extends TestBase {
String key = prop.getProperty("id"); String key = prop.getProperty("id");
String server = prop.getProperty("server"); String server = prop.getProperty("server");
if (server != null) { if (server != null) {
String u2 = url.substring(url.indexOf("autoServer")); String u2 = url.substring(url.indexOf(";"));
u2 = "jdbc:h2:tcp://" + server + "/" + key; u2 = "jdbc:h2:tcp://" + server + "/" + key + u2;
conn = DriverManager.getConnection(u2, user, password); conn = DriverManager.getConnection(u2, user, password);
conn.close(); conn.close();
break; break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论