Index: sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart |
diff --git a/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart b/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart |
index 296490ffa5b6169b2082b5dcef7a949768a34029..09ac41512b7be4744e49e740e34846f5aa84bf0e 100644 |
--- a/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart |
+++ b/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart |
@@ -11,13 +11,13 @@ import '../../test_pub.dart'; |
main() { |
initConfig(); |
integration('activating a hosted package deactivates the Git one', () { |
- servePackages([ |
- packageMap("foo", "2.0.0") |
- ], contents: [ |
- d.dir("bin", [ |
- d.file("foo.dart", "main(args) => print('hosted');") |
- ]) |
- ]); |
+ servePackages((builder) { |
+ builder.serve("foo", "2.0.0", contents: [ |
+ d.dir("bin", [ |
+ d.file("foo.dart", "main(args) => print('hosted');") |
+ ]) |
+ ]); |
+ }); |
d.git('foo.git', [ |
d.libPubspec("foo", "1.0.0"), |