mirror of https://github.com/apache/lucene.git
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:
parent
9298da5690
commit
07b5a6f64b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue