[flutter_tools] Remove more shuffles (#107759)

This commit is contained in:
Christopher Fujino
2022-07-25 22:43:05 -07:00
committed by GitHub
parent 4056d3ffde
commit b035ef1352
4 changed files with 56 additions and 53 deletions

View File

@@ -122,7 +122,6 @@ void testUsingContext(
TemplateRenderer: () => const MustacheTemplateRenderer(),
},
body: () {
final String flutterRoot = getFlutterRoot();
return runZonedGuarded<Future<dynamic>>(() {
try {
return context.run<dynamic>(
@@ -134,7 +133,7 @@ void testUsingContext(
if (initializeFlutterRoot) {
// Provide a sane default for the flutterRoot directory. Individual
// tests can override this either in the test or during setup.
Cache.flutterRoot ??= flutterRoot;
Cache.flutterRoot ??= getFlutterRoot();
}
return await testMethod();
},