Unverified Commit 06fa590c authored by Jia Hao's avatar Jia Hao Committed by GitHub

[flutter_tools] Fix breakage when test main is tagged with @doNotStore (#79501)

parent 11276d06
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment