From 26244a9f5bc7bd7a16819b1d07b0e9c97305035f Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Wed, 12 Dec 2012 21:55:48 +0000 Subject: [PATCH] TestCompressingStoredFieldsFormat.testDeletePartiallyWrittenFilesIfAbort: disable CFS in order to be able to check file names. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1421003 13f79535-47bb-0310-9956-ffa450edef68 --- .../compressing/TestCompressingStoredFieldsFormat.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java b/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java index 0ed7cbea59c..548e6233487 100644 --- a/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java +++ b/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java @@ -366,6 +366,11 @@ public class TestCompressingStoredFieldsFormat extends LuceneTestCase { @Test(expected=IllegalArgumentException.class) public void testDeletePartiallyWrittenFilesIfAbort() throws IOException { + // disable CFS because this test checks file names + iwConf.setMergePolicy(newLogMergePolicy(false)); + iw.close(); + iw = new RandomIndexWriter(random(), dir, iwConf); + final Document validDoc = new Document(); validDoc.add(new IntField("id", 0, Store.YES)); iw.addDocument(validDoc);