ppalaga commented on a change in pull request #569: Fix #568 Untrack Artemis 
test instance data
URL: https://github.com/apache/camel-quarkus/pull/569#discussion_r360666871
 
 

 ##########
 File path: 
integration-tests/sjms/src/test/java/org/apache/camel/quarkus/component/sjms/it/CamelSjmsTestResource.java
 ##########
 @@ -41,14 +42,16 @@ public void inject(Object testInstance) {
     @Override
     public Map<String, String> start() {
         try {
-            FileUtils.deleteDirectory(Paths.get("./target/artemis").toFile());
+            final File dataDirectory = Paths.get("./target/artemis").toFile();
+            FileUtils.deleteDirectory(dataDirectory);
 
 Review comment:
   A reason for keeping it after the test could be that sometimes it is handy 
to be able to inspect the state of a directory like this after the test.
   
   Any reasons for removing it after the test?

----------------------------------------------------------------
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

Reply via email to