diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java index 04d42d9f592..cb136557f8d 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -1271,7 +1271,7 @@ public class TestIndexWriter extends LuceneTestCase { public void testDeleteUnusedFiles() throws Exception { for(int iter=0;iter<2;iter++) { - Directory dir = newDirectory(); + Directory dir = newMockDirectory(); // relies on windows semantics LogMergePolicy mergePolicy = newLogMergePolicy(true); mergePolicy.setNoCFSRatio(1); // This test expects all of its segments to be in CFS