make sure flutter test asks for cache upgrades (#30216)

This commit is contained in:
Jonah Williams
2019-03-29 15:58:16 -07:00
committed by GitHub
parent f2d671c15c
commit b8bcfaa56f

View File

@@ -11,6 +11,7 @@ import '../base/platform.dart';
import '../cache.dart';
import '../codegen.dart';
import '../dart/pub.dart';
import '../globals.dart';
import '../project.dart';
import '../runner/flutter_command.dart';
import '../test/coverage_collector.dart';
@@ -93,6 +94,7 @@ class TestCommand extends FastFlutterCommand {
@override
Future<FlutterCommandResult> runCommand() async {
await cache.updateAll(requiredArtifacts);
if (!fs.isFileSync('pubspec.yaml')) {
throwToolExit(
'Error: No pubspec.yaml file found in the current working directory.\n'