mirror of https://github.com/apache/lucene.git
Fix test bug: IndexWriterConfig was not taken into account.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1504865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1dcde887d8
commit
8ac9d7a6f6
|
@ -735,7 +735,7 @@ public class TestFieldCache extends LuceneTestCase {
|
|||
Directory dir = newDirectory();
|
||||
IndexWriterConfig cfg = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
|
||||
cfg.setMergePolicy(newLogMergePolicy());
|
||||
RandomIndexWriter iw = new RandomIndexWriter(random(), dir);
|
||||
RandomIndexWriter iw = new RandomIndexWriter(random(), dir, cfg);
|
||||
Document doc = new Document();
|
||||
IntField field = new IntField("f", 0, Store.YES);
|
||||
doc.add(field);
|
||||
|
|
Loading…
Reference in New Issue