test: fix tests failing on windows

This commit is contained in:
Aleksey Kulikov 2022-05-02 13:40:46 +03:00
parent 93b1711b51
commit 88455292d4

View file

@ -10,16 +10,11 @@ void main() {
);
setUp(() {
if (cloneDir.existsSync() && (Platform.isLinux || Platform.isMacOS)) {
if (cloneDir.existsSync()) {
cloneDir.deleteSync(recursive: true);
}
});
tearDown(() {
if (cloneDir.existsSync() && (Platform.isLinux || Platform.isMacOS)) {
cloneDir.deleteSync(recursive: true);
}
});
group('Credentials', () {
test('initializes username/password credentials', () {
final credentials = const UserPass(