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

Better support the reopen test.

上级 b4000706
...@@ -76,8 +76,10 @@ public class TestPageStore extends TestBase implements DatabaseEventListener { ...@@ -76,8 +76,10 @@ public class TestPageStore extends TestBase implements DatabaseEventListener {
long after = System.currentTimeMillis(); long after = System.currentTimeMillis();
// it's hard to test - basically it shouldn't checkpoint too often // it's hard to test - basically it shouldn't checkpoint too often
if (after - before > 10000) { if (after - before > 10000) {
if (!config.record) {
fail("Checkpoint took " + (after - before) + " ms"); fail("Checkpoint took " + (after - before) + " ms");
} }
}
stat.execute("drop table test"); stat.execute("drop table test");
stat.execute("drop sequence seq"); stat.execute("drop sequence seq");
conn.close(); conn.close();
...@@ -414,7 +416,7 @@ public class TestPageStore extends TestBase implements DatabaseEventListener { ...@@ -414,7 +416,7 @@ public class TestPageStore extends TestBase implements DatabaseEventListener {
} catch (SQLException e2) { } catch (SQLException e2) {
// ignore // ignore
} }
fail("count: " + count + " " + e); throw new RuntimeException("count: " + count, e);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论