aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/healthmarketscience/jackcess/TestUtil.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2015-04-27 03:21:47 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2015-04-27 03:21:47 +0000
commitee49db8317232aff01613146e280ad989d4e34bd (patch)
tree746da066fbd3368ab703a0adef85dc1ef0100f04 /src/test/java/com/healthmarketscience/jackcess/TestUtil.java
parent0e1f59df4df6871da91be0a554e46931a53f363f (diff)
downloadjackcess-ee49db8317232aff01613146e280ad989d4e34bd.tar.gz
jackcess-ee49db8317232aff01613146e280ad989d4e34bd.zip
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
Diffstat (limited to 'src/test/java/com/healthmarketscience/jackcess/TestUtil.java')
-rw-r--r--src/test/java/com/healthmarketscience/jackcess/TestUtil.java2
1 files changed, 1 insertions, 1 deletions
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();