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

Unified Diff: test/get/hosted/unlock_if_version_doesnt_exist_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_version_doesnt_exist_test.dart
diff --git a/test/get/hosted/unlock_if_version_doesnt_exist_test.dart b/test/get/hosted/unlock_if_version_doesnt_exist_test.dart
index 371a780d0c0ee6249bc6202e5b83ad7b7669972e..c48f071feeb0fd99c364816946281fd2551a41c6 100644
--- a/test/get/hosted/unlock_if_version_doesnt_exist_test.dart
+++ b/test/get/hosted/unlock_if_version_doesnt_exist_test.dart
@@ -20,7 +20,7 @@ main() {
schedule(() => deleteEntry(p.join(sandboxDir, cachePath)));
- servePackages((builder) => builder.serve("foo", "1.0.1"), replace: true);
+ globalPackageServer.replace((builder) => builder.serve("foo", "1.0.1"));
pubGet();
d.packagesDir({"foo": "1.0.1"}).validate();
});
« no previous file with comments | « test/get/hosted/unlock_if_new_is_unsatisfied_test.dart ('k') | test/list_package_dirs/lists_dependency_directories_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698