mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
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:
parent
b66662f33c
commit
bb75589a14
17 changed files with 160 additions and 95 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue