tillrohrmann commented on a change in pull request #8539: [FLINK-12617]
[container] StandaloneJobClusterEntrypoint defaults to random JobID for non-HA
setups
URL: https://github.com/apache/flink/pull/8539#discussion_r288191955
##########
File path:
flink-container/src/test/java/org/apache/flink/container/entrypoint/StandaloneJobClusterConfigurationParserFactoryTest.java
##########
@@ -47,9 +54,21 @@
*/
public class StandaloneJobClusterConfigurationParserFactoryTest extends
TestLogger {
+ @Rule
+ public TemporaryFolder tempFolder = new TemporaryFolder();
+ private File confFile;
+ private String confDirPath;
+
+ @Before
+ public void createEmptyFlinkConfiguration() throws IOException {
+ File confDir = tempFolder.getRoot();
+ confDirPath = confDir.getAbsolutePath();
+ confFile = new File(confDir,
GlobalConfiguration.FLINK_CONF_FILENAME);
+ new FileOutputStream(confFile).close();
Review comment:
I would suggest to replace with `confFile.createNewFile();`
----------------------------------------------------------------
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