fix tests on windows platform

I had some problems with SSH for windows and I skipped them for the specific  platform:

- clones repository with provided keypair
- clones repository with provided keypair from memory
- throws when provided keypair from memory is incorrect
This commit is contained in:
Viktor Borisov 2023-02-24 19:58:12 +07:00
parent b66662f33c
commit bb75589a14
17 changed files with 160 additions and 95 deletions

View file

@ -18,6 +18,8 @@ void main() {
});
tearDown(() {
repo.free();
tmpDir.deleteSync(recursive: true);
});
@ -510,7 +512,9 @@ Total 69 (delta 0), reused 1 (delta 0), pack-reused 68
);
expect(updateRefOutput, {'refs/heads/master': ''});
if (Platform.isLinux || Platform.isMacOS) {
if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
originRepo.free();
originDir.deleteSync(recursive: true);
}
});