mirror of https://github.com/apache/lucene.git
fix test (again)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1539886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5bd95f5b00
commit
353c7cede5
|
@ -1352,6 +1352,9 @@ public class TestIndexWriter extends LuceneTestCase {
|
||||||
|
|
||||||
List<String> files = new ArrayList<String>(Arrays.asList(dir.listAll()));
|
List<String> files = new ArrayList<String>(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.cfs"));
|
||||||
assertTrue(files.contains("_0.cfe"));
|
assertTrue(files.contains("_0.cfe"));
|
||||||
assertTrue(files.contains("_0.si"));
|
assertTrue(files.contains("_0.si"));
|
||||||
|
@ -1363,8 +1366,6 @@ public class TestIndexWriter extends LuceneTestCase {
|
||||||
} else {
|
} else {
|
||||||
// this is an NRT reopen - no segments files yet
|
// 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);
|
assertEquals(files.toString(), files.size(), 3);
|
||||||
}
|
}
|
||||||
w.addDocument(doc);
|
w.addDocument(doc);
|
||||||
|
|
Loading…
Reference in New Issue