mirror of https://github.com/apache/lucene.git
Fix test failures.
This commit is contained in:
parent
3d4082ca3d
commit
8db38f8713
|
@ -975,7 +975,7 @@ public class MockDirectoryWrapper extends BaseDirectoryWrapper {
|
|||
// and will deadlock since the lock on `this` is already taken by close(), so
|
||||
// createOutput() won't be able to take it.
|
||||
new IndexWriter(
|
||||
this, new IndexWriterConfig(null).setMergeScheduler(new SerialMergeScheduler()))
|
||||
this, new IndexWriterConfig(null).setCommitOnClose(false))
|
||||
.close();
|
||||
DirectoryReader ir2 = DirectoryReader.open(this);
|
||||
int numDocs2 = ir2.numDocs();
|
||||
|
|
Loading…
Reference in New Issue