mirror of https://github.com/apache/lucene.git
LUCENE-7345: Fix more bugs in horrible test
This commit is contained in:
parent
918acdfbc5
commit
0aec9dd248
|
@ -105,7 +105,11 @@ public class TestBoolean2 extends LuceneTestCase {
|
||||||
singleSegmentDirectory = newDirectory();
|
singleSegmentDirectory = newDirectory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: this test does not need to be doing this crazy stuff. please improve it!
|
||||||
for (String fileName : directory.listAll()) {
|
for (String fileName : directory.listAll()) {
|
||||||
|
if (fileName.startsWith("extra")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
singleSegmentDirectory.copyFrom(directory, fileName, fileName, IOContext.DEFAULT);
|
singleSegmentDirectory.copyFrom(directory, fileName, fileName, IOContext.DEFAULT);
|
||||||
singleSegmentDirectory.sync(Collections.singleton(fileName));
|
singleSegmentDirectory.sync(Collections.singleton(fileName));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue