mirror of https://github.com/apache/lucene.git
TestFieldCache: Fix test bug: IndexWriterConfig was not taken into account.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1498566 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
96cc600172
commit
8c1a6a5b04
|
@ -689,7 +689,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();
|
||||
LongField field = new LongField("f", 0L, Store.YES);
|
||||
doc.add(field);
|
||||
|
|
Loading…
Reference in New Issue