Delete generated dir
@@ -62,6 +62,7 @@ public class ModelEvaluationTest {
@Test
public void testMl_serving_not_activated() throws SAXException, IOException {
Path appDir = Path.fromString("src/test/cfg/application/ml_serving_not_activated");
+ try {
ApplicationPackageTester tester = ApplicationPackageTester.create(appDir.toString());
VespaModel model = new VespaModel(tester.app());
ContainerCluster cluster = model.getContainerClusters().get("container");
@@ -73,6 +74,10 @@ public class ModelEvaluationTest {
assertEquals(0, config.rankprofile().size());
}
+ finally {
+ IOUtils.recursiveDeleteDir(appDir.append(ApplicationPackage.MODELS_GENERATED_DIR).toFile());
+ }
+ }
private void assertHasMlModels(VespaModel model) {
ContainerCluster cluster = model.getContainerClusters().get("container");
