migrate from slow async io calls (#39515)

* migrate from slow async io calls
This commit is contained in:
Phil Quitslund
2019-08-29 16:47:10 -07:00
committed by GitHub
parent 98b9f31478
commit 37846b032f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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');
});