Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 3ac0533

Browse files
committed
Don't fail if cleanup fails
1 parent ccf62bb commit 3ac0533

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/test/java/fi/helsinki/cs/tmc/cli/backend/CourseInfoIoTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ public void setup() {
2828
}
2929

3030
@After
31-
public void cleanUp() throws IOException {
32-
FileUtils.deleteDirectory(Paths.get(tempDir).resolve("test-course").toFile());
31+
public void cleanUp() {
32+
try {
33+
FileUtils.deleteDirectory(Paths.get(tempDir).resolve("test-course").toFile());
34+
} catch (IOException e) {
35+
// NOP
36+
}
3337
}
3438

3539
@Test

0 commit comments

Comments
 (0)