FSDirectoryTest is leaking file handles when run on Windows

Description

The FSDirectoryTest is failing on Windows as it's testing what happens when deleting an actively used index, which is an illegal access exception when run on Windows, while the test runs as expected on Linux or OSX.
There also is a file handle leak in the same test, which was eating up some minimal resources on each platform.

Environment

None

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Minor
Configure