Fix bugs in unit tests which occur on Windows only (#1927)

On Windows it is much more necessary to close files to avoid locked files which prevent deleting a temporary file or folder. Also paths need to be handled differently because of the drive letter and colon appearing on Windows.
This commit is contained in:
Matthias Thieroff
2022-01-20 08:48:13 +01:00
committed by GitHub
parent 63ec4e6172
commit 0f01bb82c6
10 changed files with 40 additions and 23 deletions

View File

@@ -74,7 +74,7 @@ public class GitPushCommandTest extends AbstractRemoteCommandTestBase
PushResponse response = cmd.push(request);
assertNotNull(response);
assertEquals(2l, response.getChangesetCount());
assertEquals(2L, response.getChangesetCount());
Iterator<RevCommit> commits = incoming.log().call().iterator();