test: fix tests failing on windows

This commit is contained in:
Aleksey Kulikov 2022-05-02 14:30:39 +03:00
parent 90a6e59b2e
commit 64b45b418a

View file

@ -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);
if (Platform.isLinux || Platform.isMacOS) {
cloneDir.deleteSync(recursive: true);
}
},
testOn: '!linux',
);
@ -221,7 +213,9 @@ void main() {
expect(repo.isEmpty, false);
if (Platform.isLinux || Platform.isMacOS) {
cloneDir.deleteSync(recursive: true);
}
},
testOn: '!linux',
);