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
This commit is contained in:
Adrien Grand 2012-12-12 21:55:48 +00:00
parent f31359f5b4
commit 26244a9f5b
1 changed files with 5 additions and 0 deletions

View File

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