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
|
@ -8,11 +8,11 @@ import 'helpers/util.dart';
|
|||
|
||||
void main() {
|
||||
group('RefLog', () {
|
||||
late final Repository repo;
|
||||
late final RefLog reflog;
|
||||
late Repository repo;
|
||||
late RefLog reflog;
|
||||
final tmpDir = '${Directory.systemTemp.path}/reflog_testrepo/';
|
||||
|
||||
setUpAll(() async {
|
||||
setUp(() async {
|
||||
if (await Directory(tmpDir).exists()) {
|
||||
await Directory(tmpDir).delete(recursive: true);
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ void main() {
|
|||
reflog = RefLog(repo.head);
|
||||
});
|
||||
|
||||
tearDownAll(() async {
|
||||
tearDown(() async {
|
||||
repo.head.free();
|
||||
reflog.free();
|
||||
repo.free();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue