Fix test failures.

This commit is contained in:
Adrien Grand 2023-10-25 20:16:27 +02:00
parent 3d4082ca3d
commit 8db38f8713
1 changed files with 1 additions and 1 deletions

View File

@ -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();