zentol commented on a change in pull request #8304: [hotfix]Harden
TextInputFormatTest to avoid failure by uncleaned files
URL: https://github.com/apache/flink/pull/8304#discussion_r279250579
##########
File path:
flink-java/src/test/java/org/apache/flink/api/java/io/TextInputFormatTest.java
##########
@@ -44,14 +48,34 @@
* Tests for {@link TextInputFormat}.
*/
public class TextInputFormatTest {
+
+ private File baseDir;
+ private final String tempDirName = "tempDir";
+
+ @Before
+ public void setUp() throws IOException {
Review comment:
use a `TemporaryFolder` instead
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services