LUCENE-6932: fix test bug that was not always using the dir impl being tested

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1726264 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2016-01-22 18:11:23 +00:00
parent 9298da5690
commit 07b5a6f64b
1 changed files with 2 additions and 2 deletions

View File

@ -1192,7 +1192,7 @@ public abstract class BaseDirectoryTestCase extends LuceneTestCase {
}
public void testSeekToEndOfFile() throws IOException {
try (Directory dir = newDirectory()) {
try (Directory dir = getDirectory(createTempDir())) {
try (IndexOutput out = dir.createOutput("a", IOContext.DEFAULT)) {
for (int i = 0; i < 1024; ++i) {
out.writeByte((byte) 0);
@ -1208,7 +1208,7 @@ public abstract class BaseDirectoryTestCase extends LuceneTestCase {
}
public void testSeekBeyondEndOfFile() throws IOException {
try (Directory dir = newDirectory()) {
try (Directory dir = getDirectory(createTempDir())) {
try (IndexOutput out = dir.createOutput("a", IOContext.DEFAULT)) {
for (int i = 0; i < 1024; ++i) {
out.writeByte((byte) 0);