Clean up any change to the permission of index files during tests

Description

In some tests, we change the permission of some files in order to make indexing fail and to test the behavior of Hibernate Search when such failure happens.

That's neat as it allows us to simulate very low-level errors without relying on bytecode manipulation, but... it currently leaves files on the filesystem that cannot be removed with mvn clean.

We should add a cleanup to tests relying on this permission change, so as to restore original permissions after the test.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure