| Index: sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/cache/add/package_not_found_test.dart b/sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart
|
| similarity index 55%
|
| copy from sdk/lib/_internal/pub/test/cache/add/package_not_found_test.dart
|
| copy to sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart
|
| index 9e60b5f7790e88b3d365cc37e645e0d02c10310d..5348fe849384110376df23af7117c7b5d4ab3069 100644
|
| --- a/sdk/lib/_internal/pub/test/cache/add/package_not_found_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/global/activate/unknown_package_test.dart
|
| @@ -2,17 +2,18 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -library pub_tests;
|
| +import 'package:scheduled_test/scheduled_test.dart';
|
|
|
| +import '../../descriptor.dart' as d;
|
| import '../../test_pub.dart';
|
|
|
| main() {
|
| initConfig();
|
| - integration('fails if the package cound not be found on the source', () {
|
| + integration('errors if the package could not be found', () {
|
| servePackages([]);
|
|
|
| - schedulePub(args: ["cache", "add", "foo"],
|
| - error: new RegExp(r"Could not find package foo at http://.*"),
|
| + schedulePub(args: ["global", "activate", "foo"],
|
| + error: startsWith("Could not find package foo at"),
|
| exitCode: 1);
|
| });
|
| }
|
|
|