From ee49db8317232aff01613146e280ad989d4e34bd Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Mon, 27 Apr 2015 03:21:47 +0000 Subject: more unit test speedups using in mem dbs git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@940 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/test/java/com/healthmarketscience/jackcess/TestUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/java/com/healthmarketscience/jackcess/TestUtil.java') diff --git a/src/test/java/com/healthmarketscience/jackcess/TestUtil.java b/src/test/java/com/healthmarketscience/jackcess/TestUtil.java index 9935303..f7a24f0 100644 --- a/src/test/java/com/healthmarketscience/jackcess/TestUtil.java +++ b/src/test/java/com/healthmarketscience/jackcess/TestUtil.java @@ -84,7 +84,7 @@ public class TestUtil public static Database open(FileFormat fileFormat, File file, boolean inMem) throws Exception { - FileChannel channel = (inMem ? MemFileChannel.newChannel(file, "r") + FileChannel channel = (inMem ? MemFileChannel.newChannel(file, "rw") : null); final Database db = new DatabaseBuilder(file).setReadOnly(true) .setAutoSync(getTestAutoSync()).setChannel(channel).open(); -- cgit v1.2.3