Index: sdk/lib/_internal/pub/test/snapshot/recompiles_if_the_sdk_is_out_of_date_test.dart |
diff --git a/sdk/lib/_internal/pub/test/snapshot/recompiles_if_the_sdk_is_out_of_date_test.dart b/sdk/lib/_internal/pub/test/snapshot/recompiles_if_the_sdk_is_out_of_date_test.dart |
index 7712798de00775ca03fcb2c0f31af40569179425..41870c7f9ecd8f7e40e53f34275320c30616abe7 100644 |
--- a/sdk/lib/_internal/pub/test/snapshot/recompiles_if_the_sdk_is_out_of_date_test.dart |
+++ b/sdk/lib/_internal/pub/test/snapshot/recompiles_if_the_sdk_is_out_of_date_test.dart |
@@ -15,9 +15,11 @@ main() { |
initConfig(); |
integration("creates a snapshot for an immediate dependency's executables", |
() { |
- servePackages([packageMap("foo", "5.6.7")], contents: [ |
- d.dir("bin", [d.file("hello.dart", "void main() => print('hello!');")]) |
- ]); |
+ servePackages((builder) { |
+ builder.serve("foo", "5.6.7", contents: [ |
+ d.dir("bin", [d.file("hello.dart", "void main() => print('hello!');")]) |
+ ]); |
+ }); |
d.appDir({"foo": "5.6.7"}).create(); |