Index: sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart |
diff --git a/sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart b/sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart |
index 45808d554021fc3fc8155f303171daf01e61a6c9..9c65587ddcbfbbd9b835894a71dbea531b04c99a 100644 |
--- a/sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart |
+++ b/sdk/lib/_internal/pub/test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart |
@@ -11,12 +11,12 @@ main() { |
initConfig(); |
integration("doesn't upgrade dependencies whose constraints have been " |
"removed", () { |
- servePackages([ |
- packageMap("foo", "1.0.0", {"shared-dep": "any"}), |
- packageMap("bar", "1.0.0", {"shared-dep": "<2.0.0"}), |
- packageMap("shared-dep", "1.0.0"), |
- packageMap("shared-dep", "2.0.0") |
- ]); |
+ servePackages((builder) { |
+ builder.serve("foo", "1.0.0", deps: {"shared-dep": "any"}); |
+ builder.serve("bar", "1.0.0", deps: {"shared-dep": "<2.0.0"}); |
+ builder.serve("shared-dep", "1.0.0"); |
+ builder.serve("shared-dep", "2.0.0"); |
+ }); |
d.appDir({"foo": "any", "bar": "any"}).create(); |