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:
Adrien Grand 2013-07-01 16:58:34 +00:00
parent 96cc600172
commit 8c1a6a5b04
1 changed files with 1 additions and 1 deletions

View File

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