Index: sdk/lib/_internal/pub/test/snapshot/doesnt_resnapshot_when_a_dependency_is_unchanged_test.dart |
diff --git a/sdk/lib/_internal/pub/test/snapshot/doesnt_resnapshot_when_a_dependency_is_unchanged_test.dart b/sdk/lib/_internal/pub/test/snapshot/doesnt_resnapshot_when_a_dependency_is_unchanged_test.dart |
index c4ab2f08266ef29d446db073df7571aafb9ee08d..8750e79912f0b5a7f97c29f214af49c19b6e891a 100644 |
--- a/sdk/lib/_internal/pub/test/snapshot/doesnt_resnapshot_when_a_dependency_is_unchanged_test.dart |
+++ b/sdk/lib/_internal/pub/test/snapshot/doesnt_resnapshot_when_a_dependency_is_unchanged_test.dart |
@@ -14,12 +14,12 @@ main() { |
initConfig(); |
integration("doesn't recreate a snapshot when no dependencies of a package " |
"have changed", () { |
- servePackages([ |
- packageMap("foo", "1.2.3", {"bar": "any"}), |
- packageMap("bar", "1.2.3") |
- ], contents: [ |
- d.dir("bin", [d.file("hello.dart", "void main() => print('hello!');")]) |
- ]); |
+ servePackages((builder) { |
+ builder.serve("foo", "1.2.3", deps: {"bar": "any"}, contents: [ |
+ d.dir("bin", [d.file("hello.dart", "void main() => print('hello!');")]) |
+ ]); |
+ builder.serve("bar", "1.2.3"); |
+ }); |
d.appDir({"foo": "1.2.3"}).create(); |