From 353c7cede5dca80cca36eee86f771f5bb3604762 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 8 Nov 2013 00:48:08 +0000 Subject: [PATCH] fix test (again) git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1539886 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/index/TestIndexWriter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java index fbd89233fe3..9f53ab823ce 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -1352,6 +1352,9 @@ public class TestIndexWriter extends LuceneTestCase { List files = new ArrayList(Arrays.asList(dir.listAll())); + // RAMDir won't have a write.lock, but fs dirs will: + files.remove("write.lock"); + assertTrue(files.contains("_0.cfs")); assertTrue(files.contains("_0.cfe")); assertTrue(files.contains("_0.si")); @@ -1363,8 +1366,6 @@ public class TestIndexWriter extends LuceneTestCase { } else { // this is an NRT reopen - no segments files yet - // RAMDir won't have a write.lock, but fs dirs will: - files.remove("write.lock"); assertEquals(files.toString(), files.size(), 3); } w.addDocument(doc);