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

Fix test case.

上级 b305b955
...@@ -46,10 +46,10 @@ public class TestTransactionStore extends TestBase { ...@@ -46,10 +46,10 @@ public class TestTransactionStore extends TestBase {
@Override @Override
public void test() throws Exception { public void test() throws Exception {
FileUtils.createDirectories(getBaseDir()); FileUtils.createDirectories(getBaseDir());
// testCountWithOpenTransactions(); testCountWithOpenTransactions();
// testConcurrentUpdate(); testConcurrentUpdate();
// testRepeatedChange(); testRepeatedChange();
// testTransactionAge(); testTransactionAge();
testStopWhileCommitting(); testStopWhileCommitting();
testGetModifiedMaps(); testGetModifiedMaps();
testKeyIterator(); testKeyIterator();
...@@ -240,6 +240,10 @@ public class TestTransactionStore extends TestBase { ...@@ -240,6 +240,10 @@ public class TestTransactionStore extends TestBase {
break; break;
} }
} }
// re-open the store, because we have opened
// the undoLog map with the wrong data type
s.close();
s = MVStore.open(fileName);
ts = new TransactionStore(s); ts = new TransactionStore(s);
List<Transaction> list = ts.getOpenTransactions(); List<Transaction> list = ts.getOpenTransactions();
if (list.size() != 0) { if (list.size() != 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论