Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

After Dawid fixed the test runner make this test as simple as possible (the nested test *must* fail)

Uwe Schindler72b8f437993e
diff --git a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestFailOnFieldCacheInsanity.java b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestFailOnFieldCacheInsanity.java
index 20d57a6d27c..ed911ca8e95 100644
--- a/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestFailOnFieldCacheInsanity.java
+++ b/lucene/core/src/test/org/apache/lucene/util/junitcompat/TestFailOnFieldCacheInsanity.java
@@ -24,7 +24,6 @@ import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.RandomIndexWriter;
import org.apache.lucene.search.FieldCache;
import org.apache.lucene.store.Directory;
-import org.apache.lucene.store.MockDirectoryWrapper;
import org.apache.lucene.store.RAMDirectory;
import org.junit.Assert;
import org.junit.Test;
@@ -44,7 +43,7 @@ public class TestFailOnFieldCacheInsanity extends WithNestedTests {
private void makeIndex() throws Exception {
// we use RAMDirectory here, because we dont want to stay on open files on Windows:
- d = new MockDirectoryWrapper(random(), new RAMDirectory());
+ d = new RAMDirectory();
@SuppressWarnings("resource") RandomIndexWriter w =
new RandomIndexWriter(random(), d);
Document doc = new Document();