diff --git a/src/test/java/ca/joeltherrien/randomforest/TestSavingLoading.java b/src/test/java/ca/joeltherrien/randomforest/TestSavingLoading.java index a8fd370..41907cc 100644 --- a/src/test/java/ca/joeltherrien/randomforest/TestSavingLoading.java +++ b/src/test/java/ca/joeltherrien/randomforest/TestSavingLoading.java @@ -114,7 +114,7 @@ public class TestSavingLoading { final File directory = new File(settings.getSaveTreeLocation()); if(directory.exists()){ - directory.delete(); + cleanup(directory); } assertFalse(directory.exists()); directory.mkdir();