Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: test/snapshot/upgrades_snapshot_for_dependency_test.dart

Issue 1664563002: Refactor test servers to make them less global. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/serve_packages.dart ('k') | test/snapshot/upgrades_snapshot_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/snapshot/upgrades_snapshot_for_dependency_test.dart
diff --git a/test/snapshot/upgrades_snapshot_for_dependency_test.dart b/test/snapshot/upgrades_snapshot_for_dependency_test.dart
index 5ec2d4439b056d1f0a537afaf25e1550b6d46906..aec4b51b4acb4dcb3820589fd1db47c94c04badf 100644
--- a/test/snapshot/upgrades_snapshot_for_dependency_test.dart
+++ b/test/snapshot/upgrades_snapshot_for_dependency_test.dart
@@ -35,7 +35,7 @@ void main() => print(message);
d.matcherFile('hello.dart.snapshot', contains('hello!'))
]).validate();
- servePackages((builder) {
+ globalPackageServer.add((builder) {
builder.serve("bar", "1.2.4", contents: [
d.dir("lib", [d.file("bar.dart", "final message = 'hello 2!';")]),
]);
« no previous file with comments | « test/serve_packages.dart ('k') | test/snapshot/upgrades_snapshot_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698