mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -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', () {
|
test('pushes with update reference callback', () {
|
||||||
final originDir =
|
final originDir = Directory.systemTemp.createTempSync('origin');
|
||||||
Directory(p.join(Directory.systemTemp.path, 'origin_testrepo'));
|
|
||||||
|
|
||||||
if (originDir.existsSync()) {
|
|
||||||
originDir.deleteSync(recursive: true);
|
|
||||||
}
|
|
||||||
originDir.createSync();
|
|
||||||
copyRepo(
|
copyRepo(
|
||||||
from: Directory(p.join('test', 'assets', 'empty_bare.git')),
|
from: Directory(p.join('test', 'assets', 'empty_bare.git')),
|
||||||
to: originDir,
|
to: originDir,
|
||||||
|
@ -504,7 +499,9 @@ Total 69 (delta 0), reused 1 (delta 0), pack-reused 68
|
||||||
);
|
);
|
||||||
expect(updateRefOutput, {'refs/heads/master': ''});
|
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', () {
|
test('throws when trying to push to invalid url', () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue