MockDirectoryWrapper checks any indexes tests create on close(), if they exist.
The problem is the logic it uses to determine if an index exists could mask real bugs (e.g. segments file corrumption):
and for reference DirectoryReader.indexExists is:
So if there are segments file problems, we just silently do no checkIndex.