LUCENE-7345: Fix more bugs in horrible test

This commit is contained in:
Robert Muir 2016-06-19 11:36:40 -04:00
parent 918acdfbc5
commit 0aec9dd248
1 changed files with 4 additions and 0 deletions

View File

@ -105,7 +105,11 @@ public class TestBoolean2 extends LuceneTestCase {
singleSegmentDirectory = newDirectory();
}
// TODO: this test does not need to be doing this crazy stuff. please improve it!
for (String fileName : directory.listAll()) {
if (fileName.startsWith("extra")) {
continue;
}
singleSegmentDirectory.copyFrom(directory, fileName, fileName, IOContext.DEFAULT);
singleSegmentDirectory.sync(Collections.singleton(fileName));
}