From 4cd12fc8b7d4cc2d8609182e1c4dea5cddc86890 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Tue, 2 Jul 2019 18:24:25 -0700 Subject: [PATCH] Mark update-packages as non-experimental (#35467) Marking it as experimental was breaking tests and packaging scripts on stable branches. --- .../lib/src/commands/update_packages.dart | 3 --- .../test/commands/update_packages_test.dart | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 packages/flutter_tools/test/commands/update_packages_test.dart diff --git a/packages/flutter_tools/lib/src/commands/update_packages.dart b/packages/flutter_tools/lib/src/commands/update_packages.dart index 691001be2b..fff606c819 100644 --- a/packages/flutter_tools/lib/src/commands/update_packages.dart +++ b/packages/flutter_tools/lib/src/commands/update_packages.dart @@ -77,9 +77,6 @@ class UpdatePackagesCommand extends FlutterCommand { ); } - @override - bool get isExperimental => true; - @override final String name = 'update-packages'; diff --git a/packages/flutter_tools/test/commands/update_packages_test.dart b/packages/flutter_tools/test/commands/update_packages_test.dart new file mode 100644 index 0000000000..0a1867ca7c --- /dev/null +++ b/packages/flutter_tools/test/commands/update_packages_test.dart @@ -0,0 +1,18 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_tools/src/commands/update_packages.dart'; + +import '../src/common.dart'; +import '../src/context.dart'; + +void main() { + group('UpdatePackagesCommand', () { + // Marking it as experimental breaks bots tests and packaging scripts on stable branches. + testUsingContext('is not marked as experimental', () async { + final UpdatePackagesCommand command = UpdatePackagesCommand(); + expect(command.isExperimental, isFalse); + }); + }); +}