tillrohrmann commented on a change in pull request #6499: [hotfix] loose
dependency to mockito
URL: https://github.com/apache/flink/pull/6499#discussion_r208248174
##########
File path:
flink-yarn/src/test/java/org/apache/flink/yarn/YarnResourceManagerTest.java
##########
@@ -415,13 +553,14 @@ public void testDeleteApplicationFiles() throws
Exception {
resourceManager.deregisterApplication(ApplicationStatus.SUCCEEDED, null);
assertFalse("YARN application directory was not
removed", Files.exists(applicationDir.toPath()));
+
+ stopResourceManager();
Review comment:
Maybe we could add a function
```
runTest(RunnableWithException testMethod) {
startResourceManager();
try {
testMethod.run()
} finally {
stopResourceManager
}
}
```
This method could then also be used by the `testOnContainerCompleted` test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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