| Index: sdk/lib/_internal/pub/test/serve/does_not_get_first_if_locked_matches_override_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/serve/does_not_get_first_if_a_dependency_is_removed_test.dart b/sdk/lib/_internal/pub/test/serve/does_not_get_first_if_locked_matches_override_test.dart
|
| similarity index 63%
|
| copy from sdk/lib/_internal/pub/test/serve/does_not_get_first_if_a_dependency_is_removed_test.dart
|
| copy to sdk/lib/_internal/pub/test/serve/does_not_get_first_if_locked_matches_override_test.dart
|
| index 48ab3c109eca4314ab7ae81ae2d32c4d6c3ea4aa..5c4ed3af6c0557c252210d0cc5876f60587ef0ec 100644
|
| --- a/sdk/lib/_internal/pub/test/serve/does_not_get_first_if_a_dependency_is_removed_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/serve/does_not_get_first_if_locked_matches_override_test.dart
|
| @@ -9,8 +9,9 @@ import '../test_pub.dart';
|
| import 'utils.dart';
|
|
|
| main() {
|
| + // This is a regression test for https://dartbug.com/15180.
|
| initConfig();
|
| - integration("does not get if a dependency is removed", () {
|
| + integration("does not get if the locked version matches the override", () {
|
| d.dir("foo", [
|
| d.libPubspec("foo", "0.0.1"),
|
| d.libDir("foo")
|
| @@ -18,17 +19,21 @@ main() {
|
|
|
| // Get "foo" into the lock file.
|
| d.dir(appPath, [
|
| - d.appPubspec({
|
| - "foo": {"path": "../foo"}
|
| + d.pubspec({
|
| + "name": "myapp",
|
| + "dependencies": {
|
| + "foo": "any"
|
| + },
|
| + "dependency_overrides": {
|
| + "foo": {
|
| + "path": "../foo",
|
| + "version": ">=0.0.1"
|
| + }
|
| + }
|
| })
|
| ]).create();
|
| pubGet();
|
|
|
| - // Remove it from the pubspec.
|
| - d.dir(appPath, [
|
| - d.appPubspec()
|
| - ]).create();
|
| -
|
| pubServe(shouldGetFirst: false);
|
| requestShouldSucceed("packages/foo/foo.dart", 'main() => "foo";');
|
| endPubServe();
|
|
|