From 93b1711b51365f5e03bf2151b075c35bb584eeb2 Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Mon, 2 May 2022 13:28:13 +0300 Subject: [PATCH] test: fix tests failing on windows --- test/credentials_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/credentials_test.dart b/test/credentials_test.dart index b88ae09..1d2b170 100644 --- a/test/credentials_test.dart +++ b/test/credentials_test.dart @@ -10,13 +10,13 @@ void main() { ); setUp(() { - if (cloneDir.existsSync()) { + if (cloneDir.existsSync() && (Platform.isLinux || Platform.isMacOS)) { cloneDir.deleteSync(recursive: true); } }); tearDown(() { - if (cloneDir.existsSync()) { + if (cloneDir.existsSync() && (Platform.isLinux || Platform.isMacOS)) { cloneDir.deleteSync(recursive: true); } });