cstamas commented on a change in pull request #164:
URL: https://github.com/apache/maven-indexer/pull/164#discussion_r797448422



##########
File path: 
indexer-reader/src/test/java/org/apache/maven/index/reader/TestSupport.java
##########
@@ -54,9 +56,7 @@
     public void setup()
         throws IOException
     {
-        this.tempDir = new File( "target/tmp-" + getClass().getSimpleName() );
-        this.tempDir.delete();
-        this.tempDir.mkdirs();
+        this.tempDir = Files.createTempDirectory( getClass().getSimpleName() + 
".temp" ).toFile();
         this.directoryResourceHandlers = new ArrayList<>();

Review comment:
       We usually when needed to create temp dirs, use property for 
surefilre/failsafe to set tmp dir on CI to some place that is nuked along with 
workspace.... 




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

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to