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

Unified Diff: test/transformer/cache_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/test_pub.dart ('k') | test/upgrade/hosted/unlock_dependers_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/transformer/cache_test.dart
diff --git a/test/transformer/cache_test.dart b/test/transformer/cache_test.dart
index 85c02421cb56a96e88f38349cb5a0e8628638f7f..b653db116ba65e1d1c2f91e628f129dbe65f6cf9 100644
--- a/test/transformer/cache_test.dart
+++ b/test/transformer/cache_test.dart
@@ -171,7 +171,7 @@ main() {
])
]).validate();
- servePackages((builder) {
+ globalPackageServer.add((builder) {
builder.serve("foo", "2.0.0",
deps: {'barback': 'any'},
contents: [
@@ -242,7 +242,7 @@ main() {
process.stdout.expect("Goodbye!");
process.shouldExit();
- servePackages((builder) {
+ globalPackageServer.add((builder) {
builder.serve("bar", "2.0.0", contents: [
d.dir("lib", [
d.file("bar.dart", "final replacement = 'See ya';")
« no previous file with comments | « test/test_pub.dart ('k') | test/upgrade/hosted/unlock_dependers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698