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:
Adrien Grand 2013-07-19 13:02:14 +00:00
parent 1dcde887d8
commit 8ac9d7a6f6
1 changed files with 1 additions and 1 deletions

View File

@ -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);