提交 403d624a authored 作者: Thomas Mueller's avatar Thomas Mueller

Test.

上级 2b39ee0d
...@@ -38,7 +38,7 @@ public class TestPageStoreCoverage extends TestBase { ...@@ -38,7 +38,7 @@ public class TestPageStoreCoverage extends TestBase {
if (config.memory) { if (config.memory) {
return; return;
} }
deleteDb("pageStore"); deleteDb("pageStoreCoverage");
testMoveRoot(); testMoveRoot();
testBasic(); testBasic();
testReadOnly(); testReadOnly();
...@@ -47,7 +47,7 @@ public class TestPageStoreCoverage extends TestBase { ...@@ -47,7 +47,7 @@ public class TestPageStoreCoverage extends TestBase {
testTrim(); testTrim();
testLongTransaction(); testLongTransaction();
testRecoverTemp(); testRecoverTemp();
deleteDb("pageStore"); deleteDb("pageStoreCoverage");
} }
private void testMoveRoot() throws SQLException { private void testMoveRoot() throws SQLException {
...@@ -221,24 +221,24 @@ public class TestPageStoreCoverage extends TestBase { ...@@ -221,24 +221,24 @@ public class TestPageStoreCoverage extends TestBase {
} }
private void testIncompleteCreate() throws Exception { private void testIncompleteCreate() throws Exception {
deleteDb("pageStore"); deleteDb("pageStoreCoverage");
Connection conn; Connection conn;
String fileName = getBaseDir() + "/pageStore" + Constants.SUFFIX_PAGE_FILE; String fileName = getBaseDir() + "/pageStore" + Constants.SUFFIX_PAGE_FILE;
conn = getConnection("pageStore"); conn = getConnection("pageStoreCoverage");
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("drop table if exists INFORMATION_SCHEMA.LOB_DATA"); stat.execute("drop table if exists INFORMATION_SCHEMA.LOB_DATA");
stat.execute("drop table if exists INFORMATION_SCHEMA.LOB_MAP"); stat.execute("drop table if exists INFORMATION_SCHEMA.LOB_MAP");
conn.close(); conn.close();
FileChannel f = FileUtils.open(fileName, "rw"); FileChannel f = FileUtils.open(fileName, "rw");
// create a new database // create a new database
conn = getConnection("pageStore"); conn = getConnection("pageStoreCoverage");
conn.close(); conn.close();
f = FileUtils.open(fileName, "rw"); f = FileUtils.open(fileName, "rw");
f.truncate(16); f.truncate(16);
// create a new database // create a new database
conn = getConnection("pageStore"); conn = getConnection("pageStoreCoverage");
conn.close(); conn.close();
deleteDb("pageStore"); deleteDb("pageStoreCoverage");
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论