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

Fix tests.

上级 75f62370
......@@ -357,6 +357,9 @@ public class TestLob extends TestBase {
}
private void testDeadlock2() throws Exception {
if (config.mvcc) {
return;
}
deleteDb("lob");
Connection conn = getDeadlock2Connection();
Statement stat = conn.createStatement();
......
......@@ -26,6 +26,7 @@ import org.h2.test.TestBase;
import org.h2.tools.DeleteDbFiles;
import org.h2.tools.Recover;
import org.h2.tools.Restore;
import org.h2.util.JdbcUtils;
import org.h2.util.Task;
/**
......@@ -204,6 +205,7 @@ int test;
conn.setAutoCommit(false);
stat.execute("insert into test values(1)");
stat.execute("shutdown immediately");
JdbcUtils.closeSilently(conn);
conn = getConnection(url);
stat = conn.createStatement();
......@@ -219,6 +221,7 @@ int test;
stat.execute("delete from test");
stat.execute("checkpoint");
stat.execute("shutdown immediately");
JdbcUtils.closeSilently(conn);
conn = getConnection(url);
stat = conn.createStatement();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论