mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
test: use setUp for tests instead of setUpAll
This commit is contained in:
parent
2170965ad8
commit
a474f06917
3 changed files with 12 additions and 50 deletions
|
@ -14,7 +14,7 @@ void main() {
|
|||
late Repository repo;
|
||||
final tmpDir = '${Directory.systemTemp.path}/odb_testrepo/';
|
||||
|
||||
setUpAll(() async {
|
||||
setUp(() async {
|
||||
if (await Directory(tmpDir).exists()) {
|
||||
await Directory(tmpDir).delete(recursive: true);
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ void main() {
|
|||
repo = Repository.open(tmpDir);
|
||||
});
|
||||
|
||||
tearDownAll(() async {
|
||||
tearDown(() async {
|
||||
repo.free();
|
||||
await Directory(tmpDir).delete(recursive: true);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue