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

Unified Diff: test/get/hosted/unlock_if_incompatible_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: 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_incompatible_test.dart
diff --git a/test/get/hosted/unlock_if_incompatible_test.dart b/test/get/hosted/unlock_if_incompatible_test.dart
index fb6c7f7a31139395b436a56c10e5422d8ca21363..08d011c4e3f230dad61b315971efd19dab456fb2 100644
--- a/test/get/hosted/unlock_if_incompatible_test.dart
+++ b/test/get/hosted/unlock_if_incompatible_test.dart
@@ -15,7 +15,7 @@ main() {
pubGet();
d.packagesDir({"foo": "1.0.0"}).validate();
- servePackages((builder) => builder.serve("foo", "1.0.1"));
+ globalPackageServer.add((builder) => builder.serve("foo", "1.0.1"));
d.appDir({"foo": ">1.0.0"}).create();
pubGet();

Powered by Google App Engine
This is Rietveld 408576698