mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Minor fixes to ItemImport/Export ITs. Delete temp files on exit instead of immediately (as immediately sometimes fails)
This commit is contained in:
@@ -83,9 +83,9 @@ public class ItemExportCLIIT extends AbstractIntegrationTestWithDatabase {
|
||||
@After
|
||||
@Override
|
||||
public void destroy() throws Exception {
|
||||
PathUtils.deleteDirectory(tempDir);
|
||||
PathUtils.deleteOnExit(tempDir);
|
||||
for (Path path : Files.list(workDir).collect(Collectors.toList())) {
|
||||
PathUtils.delete(path);
|
||||
PathUtils.deleteOnExit(path);
|
||||
}
|
||||
super.destroy();
|
||||
}
|
||||
|
@@ -92,9 +92,9 @@ public class ItemImportCLIIT extends AbstractIntegrationTestWithDatabase {
|
||||
@After
|
||||
@Override
|
||||
public void destroy() throws Exception {
|
||||
PathUtils.deleteDirectory(tempDir);
|
||||
PathUtils.deleteOnExit(tempDir);
|
||||
for (Path path : Files.list(workDir).collect(Collectors.toList())) {
|
||||
PathUtils.delete(path);
|
||||
PathUtils.deleteOnExit(path);
|
||||
}
|
||||
super.destroy();
|
||||
}
|
||||
|
Reference in New Issue
Block a user