mirror of https://github.com/apache/lucene.git
don't use MockDirectoryWrapper here: it can cause testThreadSafety thread starvation so test times out after 2 hours
This commit is contained in:
parent
fce10ae109
commit
b9ded92295
|
@ -30,7 +30,12 @@ public class TestHardLinkCopyDirectoryWrapper extends BaseDirectoryTestCase {
|
|||
|
||||
@Override
|
||||
protected Directory getDirectory(Path file) throws IOException {
|
||||
Directory open = random().nextBoolean() ? newFSDirectory(file) : newDirectory();
|
||||
Directory open;
|
||||
if (random().nextBoolean()) {
|
||||
open = new RAMDirectory();
|
||||
} else {
|
||||
open = FSDirectory.open(file);
|
||||
}
|
||||
return new HardlinkCopyDirectoryWrapper(open);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue