提交 4d15689c authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix test case

上级 7040e52b
......@@ -431,7 +431,8 @@ public class TestMVStore extends TestBase {
header.put("format", "2");
MVMap<Integer, String> m = s.openMap("data");
// this is to ensure the file header is overwritten
for (int i = 0; i < 100; i++) {
// the header is written at least every 20 commits
for (int i = 0; i < 30; i++) {
m.put(0, "Hello World " + i);
s.commit();
if (i > 5) {
......@@ -752,7 +753,9 @@ public class TestMVStore extends TestBase {
int format = Integer.parseInt(header.get("format").toString());
assertEquals(1, format);
header.put("format", Integer.toString(format + 1));
for (int i = 0; i < 10; i++) {
// this is to ensure the file header is overwritten
// the header is written at least every 20 commits
for (int i = 0; i < 30; i++) {
if (i > 5) {
s.setRetentionTime(0);
}
......@@ -889,7 +892,8 @@ public class TestMVStore extends TestBase {
m.put("test", "123");
MVMap<Integer, Integer> map = s.openMap("test");
map.put(10, 100);
// ensure the file header is overwritten
// this is to ensure the file header is overwritten
// the header is written at least every 20 commits
for (int i = 0; i < 30; i++) {
if (i > 5) {
s.setRetentionTime(0);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论