diff --git a/test/repository_test.dart b/test/repository_test.dart index 5e01dcf..b3ea7a4 100644 --- a/test/repository_test.dart +++ b/test/repository_test.dart @@ -134,6 +134,9 @@ void main() { final tmpDir = '${Directory.systemTemp.path}/testrepo/'; setUpAll(() async { + if (await Directory(tmpDir).exists()) { + await Directory(tmpDir).delete(recursive: true); + } await copyRepo( from: Directory('test/assets/testrepo/'), to: await Directory(tmpDir).create(),