This test started to fail recently with the following error:
I believe it's possible that some resources have not been closed correctly, we need to investigate that.
This happened in the internal QA lab:
Maybe it's linked to HSEARCH-2690, which also happened on Windows only... ? Having a look.
In the case of it was actually possible ( and legit ) that the files were not closed yet. In this case, we need to ensure the files have been closed correctly: I suspect it was leaking some resource. More likely solved by your ?
You're right, it's something else. There's something particular in this test: multiple search factories share the same index files. I think I know what's wrong, I'll test and send a PR.