diff --git a/test/functional_test.dart b/test/functional_test.dart index 5259b84..9a374e9 100644 --- a/test/functional_test.dart +++ b/test/functional_test.dart @@ -20,11 +20,11 @@ void main() { out.buffer.clear(); err.buffer.clear(); temp = await Directory.systemTemp.createTemp(); - await Directory('test/template').list().forEach((element) async { + await for (final element in Directory('test/template').list()) { if (element is File) { await element.copy(path.join(temp.path, path.basename(element.path))); } - }); + } }); tearDown(() async {