Apache Solr open-source search software
LUCENE-6932: fix test bug that was not always using the dir impl being tested
Michael McCandless07b5a6f64bc6
diff --git a/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.javaindex 436543866b0..c01535147c2 100644--- a/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/store/BaseDirectoryTestCase.java@@ -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);