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

Server.shutdownTcpServer can now stop all TCP servers on this JVM.

上级 6ef1f15c
......@@ -664,14 +664,14 @@ public class TestTools extends TestBase {
conn = DriverManager.getConnection("jdbc:h2:tcp://localhost:9192/test", "sa", "");
conn.close();
try {
Server.shutdownTcpServer("tcp://localhost:9192", "", true);
Server.shutdownTcpServer("tcp://localhost:9192", "", true, false);
fail("shouldn't work and should throw an exception");
} catch (SQLException e) {
assertKnownException(e);
}
conn = DriverManager.getConnection("jdbc:h2:tcp://localhost:9192/test", "sa", "");
// conn.close();
Server.shutdownTcpServer("tcp://localhost:9192", "abc", true);
Server.shutdownTcpServer("tcp://localhost:9192", "abc", true, false);
// check that the database is closed
deleteDb("test");
try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论