Skip to content

Commit

Permalink
Simplify temp dir creation
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Oct 15, 2023
1 parent 9b79bda commit 176937d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.lang.management.ThreadInfo;
import java.lang.management.ThreadMXBean;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.ScheduledExecutorService;
Expand Down Expand Up @@ -76,9 +77,7 @@ public void shouldNotBeDebugMode() throws Exception {

@Test
public void shouldReadSurefireProperties() throws Exception {
File target = new File(System.getProperty("user.dir", "target"));
File tmpDir = new File(target, "ForkedBooterTest.1");
assertThat(tmpDir.mkdirs()).isTrue();
File tmpDir = Files.createTempDirectory("ForkedBooterTest.1.").toFile();

try {
try (InputStream is = invokeMethod(
Expand Down

0 comments on commit 176937d

Please sign in to comment.