You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In GitService.java the basePath = "/tmp";
Running unit test from eclipse 2023.12 using builtin jdk 17 and getting exception.
The gitDirectory is set to "gitrepo".
The cloneRepo method checks if the directory exists and if so, calls FileUtils.deleteDirectory("\tmp\gitrepo");
Down in FileUtils.forceDelete for ".git" there is an exception:
java.nio.file.FileSystemException: \tmp\gitrepo.git\objects\pack\pack-1ea539ee1c45a7d266d014fe2347c06e5d8ab781.pack: The process cannot access the file because it is being used by another process.
What could cause this ?
I would like to contribute to the project, this is why my first step is to make sure I can run the unit tests.
The text was updated successfully, but these errors were encountered:
public class GitService implements MigrationFilesService{
...
static AtomicInteger seq = new AtomicInteger(0);
public GitService(String localRepo, GitRequest gitRequest) {
this.gitRequest = gitRequest;
this.gitDirectory = new File(basePath + "/" + localRepo + Integer.toString(seq.addAndGet(1)));
}
Since the problem is about the repo files being locked for some reason, generating a new repo directory allows the tests to run to the end successfully.
Now, this is obviously not a real solution but at least I can now run the unit tests.
In GitService.java the basePath = "/tmp";
Running unit test from eclipse 2023.12 using builtin jdk 17 and getting exception.
The gitDirectory is set to "gitrepo".
The cloneRepo method checks if the directory exists and if so, calls FileUtils.deleteDirectory("\tmp\gitrepo");
Down in FileUtils.forceDelete for ".git" there is an exception:
java.nio.file.FileSystemException: \tmp\gitrepo.git\objects\pack\pack-1ea539ee1c45a7d266d014fe2347c06e5d8ab781.pack: The process cannot access the file because it is being used by another process.
What could cause this ?
I would like to contribute to the project, this is why my first step is to make sure I can run the unit tests.
The text was updated successfully, but these errors were encountered: