提交 060eace4 authored 作者: thomasmueller's avatar thomasmueller

Reduce memory usage for test (for Travis)

上级 c895142b
...@@ -287,6 +287,7 @@ public class TestFileSystem extends TestBase { ...@@ -287,6 +287,7 @@ public class TestFileSystem extends TestBase {
conn.close(); conn.close();
deleteDb("fsMem"); deleteDb("fsMem");
FileUtils.delete(getBaseDir() + "/fsMem.zip"); FileUtils.delete(getBaseDir() + "/fsMem.zip");
FileUtils.delete("memFS:fsMem.mv.db");
} }
private void testDatabaseInJar() throws Exception { private void testDatabaseInJar() throws Exception {
...@@ -811,7 +812,7 @@ public class TestFileSystem extends TestBase { ...@@ -811,7 +812,7 @@ public class TestFileSystem extends TestBase {
RandomAccessFile ra = new RandomAccessFile(file, "rw"); RandomAccessFile ra = new RandomAccessFile(file, "rw");
FileUtils.delete(s); FileUtils.delete(s);
final FileChannel f = FileUtils.open(s, "rw"); final FileChannel f = FileUtils.open(s, "rw");
final int size = getSize(100, 500); final int size = getSize(10, 50);
f.write(ByteBuffer.allocate(size * 64 * 1024)); f.write(ByteBuffer.allocate(size * 64 * 1024));
Random random = new Random(1); Random random = new Random(1);
Task task = new Task() { Task task = new Task() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论