提交 13fa6bbe authored 作者: Thomas Mueller Graf's avatar Thomas Mueller Graf

Fix test case

上级 507d02d0
...@@ -28,11 +28,10 @@ public class TestSessionsLocks extends TestBase { ...@@ -28,11 +28,10 @@ public class TestSessionsLocks extends TestBase {
@Override @Override
public void test() throws Exception { public void test() throws Exception {
if (config.mvcc) {
return;
}
testCancelStatement(); testCancelStatement();
if (!config.mvcc) {
testLocks(); testLocks();
}
deleteDb("sessionsLocks"); deleteDb("sessionsLocks");
} }
......
...@@ -94,6 +94,9 @@ public class TestXA extends TestBase { ...@@ -94,6 +94,9 @@ public class TestXA extends TestBase {
} }
private void testRollbackAfterPrepare() throws Exception { private void testRollbackAfterPrepare() throws Exception {
if (config.memory) {
return;
}
Xid xid = new Xid() { Xid xid = new Xid() {
@Override @Override
public int getFormatId() { public int getFormatId() {
...@@ -111,6 +114,7 @@ public class TestXA extends TestBase { ...@@ -111,6 +114,7 @@ public class TestXA extends TestBase {
deleteDb("xa"); deleteDb("xa");
JdbcDataSource ds = new JdbcDataSource(); JdbcDataSource ds = new JdbcDataSource();
ds.setURL(getURL("xa", true)); ds.setURL(getURL("xa", true));
ds.setPassword(getPassword());
Connection dm = ds.getConnection(); Connection dm = ds.getConnection();
Statement stat = dm.createStatement(); Statement stat = dm.createStatement();
stat.execute("CREATE TABLE IF NOT EXISTS TEST(ID INT PRIMARY KEY, VAL INT)"); stat.execute("CREATE TABLE IF NOT EXISTS TEST(ID INT PRIMARY KEY, VAL INT)");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论