提交 7103d8ea authored 作者: andrei's avatar andrei

Test adustment

上级 6391e991
...@@ -77,8 +77,6 @@ public class TestQueryCache extends TestBase { ...@@ -77,8 +77,6 @@ public class TestQueryCache extends TestBase {
prep = conn.prepareStatement(query); prep = conn.prepareStatement(query);
} else if (i == 1001) { } else if (i == 1001) {
first = time; first = time;
// try to avoid pauses in subsequent iterations
System.gc();
} else if (i > 1001) { } else if (i > 1001) {
if (first > time) { if (first > time) {
firstGreater++; firstGreater++;
......
...@@ -151,8 +151,7 @@ public class TestStreamStore extends TestBase { ...@@ -151,8 +151,7 @@ public class TestStreamStore extends TestBase {
long readCount = s.getFileStore().getReadCount(); long readCount = s.getFileStore().getReadCount();
// the read count should be low because new blocks // the read count should be low because new blocks
// are appended at the end (not between existing blocks) // are appended at the end (not between existing blocks)
System.out.println("rc: " + readCount); assertTrue("rc: " + readCount, readCount <= 17);
// assertTrue("rc: " + readCount, readCount < 15);
map = s.openMap("data"); map = s.openMap("data");
assertTrue("size: " + map.size(), map.sizeAsLong() >= 200); assertTrue("size: " + map.size(), map.sizeAsLong() >= 200);
s.close(); s.close();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论