mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -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';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
// final cloneDir = Directory(
|
|
||||||
// p.join(Directory.systemTemp.path, 'credentials_cloned'),
|
|
||||||
// );
|
|
||||||
|
|
||||||
// setUp(() {
|
|
||||||
// if (cloneDir.existsSync()) {
|
|
||||||
// cloneDir.deleteSync(recursive: true);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
group('Credentials', () {
|
group('Credentials', () {
|
||||||
test('initializes username/password credentials', () {
|
test('initializes username/password credentials', () {
|
||||||
final credentials = const UserPass(
|
final credentials = const UserPass(
|
||||||
|
@ -113,7 +103,9 @@ void main() {
|
||||||
|
|
||||||
expect(repo.isEmpty, false);
|
expect(repo.isEmpty, false);
|
||||||
|
|
||||||
|
if (Platform.isLinux || Platform.isMacOS) {
|
||||||
cloneDir.deleteSync(recursive: true);
|
cloneDir.deleteSync(recursive: true);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
testOn: '!linux',
|
testOn: '!linux',
|
||||||
);
|
);
|
||||||
|
@ -221,7 +213,9 @@ void main() {
|
||||||
|
|
||||||
expect(repo.isEmpty, false);
|
expect(repo.isEmpty, false);
|
||||||
|
|
||||||
|
if (Platform.isLinux || Platform.isMacOS) {
|
||||||
cloneDir.deleteSync(recursive: true);
|
cloneDir.deleteSync(recursive: true);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
testOn: '!linux',
|
testOn: '!linux',
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue