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

Unified Diff: test/get/hosted/unlock_if_new_is_unsatisfied_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
Index: test/get/hosted/unlock_if_new_is_unsatisfied_test.dart
diff --git a/test/get/hosted/unlock_if_new_is_unsatisfied_test.dart b/test/get/hosted/unlock_if_new_is_unsatisfied_test.dart
index b824a2e8b265fec30dd6406bc7707c3e472eba8a..fd65adc5202c51dde08c1328331947505ac4aea6 100644
--- a/test/get/hosted/unlock_if_new_is_unsatisfied_test.dart
+++ b/test/get/hosted/unlock_if_new_is_unsatisfied_test.dart
@@ -26,7 +26,7 @@ main() {
"qux": "1.0.0"
}).validate();
- servePackages((builder) {
+ globalPackageServer.add((builder) {
builder.serve("foo", "2.0.0", deps: {"bar": "<3.0.0"});
builder.serve("bar", "2.0.0", deps: {"baz": "<3.0.0"});
builder.serve("baz", "2.0.0", deps: {"qux": "<3.0.0"});
« no previous file with comments | « test/get/hosted/unlock_if_incompatible_test.dart ('k') | test/get/hosted/unlock_if_version_doesnt_exist_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698