Use runUnsynchronized for android_views test (#99311)

This commit is contained in:
Gary Qian 2022-02-28 23:31:20 -08:00 committed by GitHub
parent 8b95cd6f35
commit e85ba6eeae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,9 @@ Future<void> main() async {
final SerializableFinder motionEventsListTile =
find.byValueKey('MotionEventsListTile');
await driver.tap(motionEventsListTile);
await driver.waitFor(find.byValueKey('PlatformView'));
await driver.runUnsynchronized(() async {
driver.waitFor(find.byValueKey('PlatformView'));
});
final String errorMessage = await driver.requestData('run test');
expect(errorMessage, '');
final SerializableFinder backButton = find.byValueKey('back');