Unverified Commit 37846b03 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

migrate from slow async io calls (#39515)

* migrate from slow async io calls
parent 98b9f314
......@@ -122,7 +122,7 @@ TaskFunction createBasicMaterialCompileTest() {
await flutter('create', options: <String>['--template=app', sampleAppName]);
});
if (!(await sampleDir.exists()))
if (!sampleDir.existsSync())
throw 'Failed to create default Flutter app in ${sampleDir.path}';
return CompileTest(sampleDir.path).run();
......
......@@ -467,6 +467,7 @@ void main() {
final StringBuffer buf = StringBuffer('1');
await tester.runAsync(() async {
buf.write('2');
//ignore: avoid_slow_async_io
await Directory.current.stat();
buf.write('3');
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment