LUCENE-5189: disable merges in testChangeCodec

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1527147 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shai Erera 2013-09-28 03:13:35 +00:00
parent bb34b50b78
commit a593916466
1 changed files with 1 additions and 0 deletions

View File

@ -1037,6 +1037,7 @@ public class TestNumericDocValuesUpdates extends LuceneTestCase {
public void testChangeCodec() throws Exception {
Directory dir = newDirectory();
IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
conf.setMergePolicy(NoMergePolicy.COMPOUND_FILES); // disable merges to simplify test assertions.
conf.setCodec(new Lucene45Codec() {
@Override
public DocValuesFormat getDocValuesFormatForField(String field) {