mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
migrate from slow async io calls (#39515)
* migrate from slow async io calls
This commit is contained in:
parent
98b9f31478
commit
37846b032f
@ -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');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user