mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[flutter_tools] Fix breakage when test main is tagged with @doNotStore (#79501)
This commit is contained in:
parent
11276d060f
commit
06fa590cd9
@ -182,8 +182,11 @@ Future<void> _testMain() async {
|
||||
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
''');
|
||||
}
|
||||
// Don't propagate the return value of `test.main` here. If the `main`
|
||||
// function on users` test is annotated with `@doNotStore`, it will cause an
|
||||
// analyzer error otherwise.
|
||||
buffer.write('''
|
||||
return test.main();
|
||||
await Future(test.main);
|
||||
}
|
||||
|
||||
/// Capture any top-level errors (mostly lazy syntax errors, since other are
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user