Skip to content

Commit 47bb0fc

Browse files
committed
test: fix test spec directory is not being deleted
1 parent b02f09b commit 47bb0fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openapi-generator/test/builder_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ class TestClassConfig extends OpenapiGeneratorConfig {}
132132
'https://raw.githubusercontent.com/Nexushunter/tagmine-api/main/openapi.yaml';
133133
final basePath = '${testSpecPath}output-nextgen/';
134134
final f = File('${basePath}cache.json');
135-
tearDown(() {
136-
final b = File(basePath);
135+
tearDownAll(() {
136+
final b = Directory(basePath);
137137
if (b.existsSync()) b.deleteSync(recursive: true);
138138
});
139139

0 commit comments

Comments
 (0)