mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
test(repository): check if tmp directory exists and remove it before copying repo
This commit is contained in:
parent
be680595bc
commit
21001d170c
1 changed files with 3 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue