mirror of
https://github.com/apache/lucene.git
synced 2025-02-27 13:06:37 +00:00
fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1132583 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56179f0fc3
commit
205e63ab7d
@ -53,6 +53,8 @@ public class TestIndexFileDeleter extends LuceneTestCase {
|
||||
setMergePolicy(mergePolicy)
|
||||
);
|
||||
|
||||
writer.setInfoStream(VERBOSE ? System.out : null);
|
||||
|
||||
int i;
|
||||
for(i=0;i<35;i++) {
|
||||
addDoc(writer, i);
|
||||
@ -146,7 +148,9 @@ public class TestIndexFileDeleter extends LuceneTestCase {
|
||||
copyFile(dir, "segments_2", "segments_1");
|
||||
|
||||
// Create a bogus cfs file shadowing a non-cfs segment:
|
||||
copyFile(dir, "_1.cfs", "_2.cfs");
|
||||
assertTrue(dir.fileExists("_3.fdt"));
|
||||
assertTrue(!dir.fileExists("_3.cfs"));
|
||||
copyFile(dir, "_1.cfs", "_3.cfs");
|
||||
|
||||
String[] filesPre = dir.listAll();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user