Skip to content

Commit f7a67ea

Browse files
committed
Add solution
1 parent ffebb7e commit f7a67ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/org/example/training/HelloWorldTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ public void writeToResourcesDir() throws IOException {
3131
// Simple timer
3232
long startTime = System.nanoTime();
3333

34-
// resolve a file in the data dir (data/timing.txt)
35-
Path timingFile = Paths.get("data/timing.txt");
34+
// resolve a file relative to the `target` directory
35+
Path timingFile = Paths.get("./target/test-output/timing.txt");
36+
Files.createDirectories(timingFile.getParent());
3637

3738
// Record the time
3839
long timeTaken = System.nanoTime() - startTime;

0 commit comments

Comments
 (0)