Fix Linux_android_emu tests late initialization errors (#152932)
This does not fix the issue underlying https://github.com/flutter/flutter/issues/152684, but may prevent `adb logcat` from ending before we've captured the logs that explain why the app or emulator are potentially crashing. Fixes Fixes https://github.com/flutter/flutter/issues/152899
This commit is contained in:
@@ -6,17 +6,17 @@ import 'package:flutter_driver/flutter_driver.dart';
|
||||
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
|
||||
|
||||
void main() {
|
||||
late FlutterDriver driver;
|
||||
FlutterDriver? driver;
|
||||
|
||||
setUpAll(() async {
|
||||
driver = await FlutterDriver.connect();
|
||||
});
|
||||
|
||||
tearDownAll(() async {
|
||||
await driver.close();
|
||||
await driver?.close();
|
||||
});
|
||||
|
||||
test('Can run with --dart-define', () async {
|
||||
await driver.waitFor(find.text('Example,AValue'));
|
||||
await driver?.waitFor(find.text('Example,AValue'));
|
||||
}, timeout: Timeout.none);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user