mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 12:19:09 -04:00
test: fix test failing on windows
This commit is contained in:
parent
fc1dac6f96
commit
5334ec23dd
1 changed files with 4 additions and 7 deletions
|
@ -473,13 +473,8 @@ Total 69 (delta 0), reused 1 (delta 0), pack-reused 68
|
|||
);
|
||||
|
||||
test('pushes with update reference callback', () {
|
||||
final originDir =
|
||||
Directory(p.join(Directory.systemTemp.path, 'origin_testrepo'));
|
||||
final originDir = Directory.systemTemp.createTempSync('origin');
|
||||
|
||||
if (originDir.existsSync()) {
|
||||
originDir.deleteSync(recursive: true);
|
||||
}
|
||||
originDir.createSync();
|
||||
copyRepo(
|
||||
from: Directory(p.join('test', 'assets', 'empty_bare.git')),
|
||||
to: originDir,
|
||||
|
@ -504,7 +499,9 @@ Total 69 (delta 0), reused 1 (delta 0), pack-reused 68
|
|||
);
|
||||
expect(updateRefOutput, {'refs/heads/master': ''});
|
||||
|
||||
originDir.deleteSync(recursive: true);
|
||||
if (Platform.isLinux || Platform.isMacOS) {
|
||||
originDir.deleteSync(recursive: true);
|
||||
}
|
||||
});
|
||||
|
||||
test('throws when trying to push to invalid url', () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue