| Index: sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/global/activate/cached_package_test.dart b/sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart
|
| similarity index 56%
|
| copy from sdk/lib/_internal/pub/test/global/activate/cached_package_test.dart
|
| copy to sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart
|
| index 348e7677ae4b6e9f5a0aa4168f000d86b61beef9..8816bcd63ceb71ee8de9295ea874ad7e7c71fa0c 100644
|
| --- a/sdk/lib/_internal/pub/test/global/activate/cached_package_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/global/activate/removes_old_lockfile_test.dart
|
| @@ -9,22 +9,24 @@ import '../../test_pub.dart';
|
|
|
| main() {
|
| initConfig();
|
| - integration('can activate an already cached package', () {
|
| + integration('removes the 1.6-style lockfile', () {
|
| servePackages((builder) {
|
| builder.serve("foo", "1.0.0");
|
| });
|
|
|
| - schedulePub(args: ["cache", "add", "foo"]);
|
| + d.dir(cachePath, [
|
| + d.dir('global_packages', [
|
| + d.file('foo.lock', 'packages: {foo: {description: foo, source: hosted, '
|
| + 'version: "1.0.0"}}}')
|
| + ])
|
| + ]).create();
|
|
|
| - schedulePub(args: ["global", "activate", "foo"], output: """
|
| - Resolving dependencies...
|
| - + foo 1.0.0
|
| - Activated foo 1.0.0.""");
|
| + schedulePub(args: ["global", "activate", "foo"]);
|
|
|
| - // Should be in global package cache.
|
| d.dir(cachePath, [
|
| d.dir('global_packages', [
|
| - d.matcherFile('foo.lock', contains('1.0.0'))
|
| + d.nothing('foo.lock'),
|
| + d.dir('foo', [d.matcherFile('pubspec.lock', contains('1.0.0'))])
|
| ])
|
| ]).validate();
|
| });
|
|
|