test: fix tests failing on windows

This commit is contained in:
Aleksey Kulikov 2022-05-02 13:28:13 +03:00
parent 813de89745
commit 93b1711b51

View file

@ -10,13 +10,13 @@ void main() {
); );
setUp(() { setUp(() {
if (cloneDir.existsSync()) { if (cloneDir.existsSync() && (Platform.isLinux || Platform.isMacOS)) {
cloneDir.deleteSync(recursive: true); cloneDir.deleteSync(recursive: true);
} }
}); });
tearDown(() { tearDown(() {
if (cloneDir.existsSync()) { if (cloneDir.existsSync() && (Platform.isLinux || Platform.isMacOS)) {
cloneDir.deleteSync(recursive: true); cloneDir.deleteSync(recursive: true);
} }
}); });