mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test: fix tests failing on windows
This commit is contained in:
parent
90a6e59b2e
commit
64b45b418a
1 changed files with 6 additions and 12 deletions
|
@ -5,16 +5,6 @@ import 'package:path/path.dart' as p;
|
|||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
// final cloneDir = Directory(
|
||||
// p.join(Directory.systemTemp.path, 'credentials_cloned'),
|
||||
// );
|
||||
|
||||
// setUp(() {
|
||||
// if (cloneDir.existsSync()) {
|
||||
// cloneDir.deleteSync(recursive: true);
|
||||
// }
|
||||
// });
|
||||
|
||||
group('Credentials', () {
|
||||
test('initializes username/password credentials', () {
|
||||
final credentials = const UserPass(
|
||||
|
@ -113,7 +103,9 @@ void main() {
|
|||
|
||||
expect(repo.isEmpty, false);
|
||||
|
||||
cloneDir.deleteSync(recursive: true);
|
||||
if (Platform.isLinux || Platform.isMacOS) {
|
||||
cloneDir.deleteSync(recursive: true);
|
||||
}
|
||||
},
|
||||
testOn: '!linux',
|
||||
);
|
||||
|
@ -221,7 +213,9 @@ void main() {
|
|||
|
||||
expect(repo.isEmpty, false);
|
||||
|
||||
cloneDir.deleteSync(recursive: true);
|
||||
if (Platform.isLinux || Platform.isMacOS) {
|
||||
cloneDir.deleteSync(recursive: true);
|
||||
}
|
||||
},
|
||||
testOn: '!linux',
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue