Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
CommonTestUtils.createTempDirectory() encourages a dangerous design pattern with potential concurrency issues in the unit tests as well as the need to cleanup the created directories.
Instead, it should be solved by using the following pattern:
@Rule public TemporaryFolder tempFolder = new TemporaryFolder();
We should therefore remove CommonTestUtils.createTempDirectory().
Attachments
Issue Links
- is related to
-
FLINK-5860 Replace all the file creating from java.io.tmpdir with TemporaryFolder
- Closed
- links to