Close repository after each operation
This prevents the tests failing when they try to delete the .git files, but there is still a file lock (in Snake YAML), so does not yet fix gh-45.
This commit is contained in:
@@ -45,7 +45,7 @@ public class JGitEnvironmentRepositoryTests {
|
||||
String uri = ConfigServerTestUtils.prepareLocalRepo();
|
||||
repository.setUri(uri);
|
||||
if (basedir.exists()) {
|
||||
FileUtils.delete(basedir, FileUtils.RECURSIVE);
|
||||
FileUtils.delete(basedir, FileUtils.RECURSIVE | FileUtils.RETRY);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user