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

Unified Diff: test/descriptor.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/cache/repair/reinstalls_hosted_packages_test.dart ('k') | test/descriptor_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/descriptor.dart
diff --git a/test/descriptor.dart b/test/descriptor.dart
index be7cb71a6116626cdf20f214bcc5e160dba060aa..b9a28b36c4a395da0a296bc607ae42d4ff89049a 100644
--- a/test/descriptor.dart
+++ b/test/descriptor.dart
@@ -153,7 +153,7 @@ Descriptor cacheDir(Map packages, {bool includePubspecs: false}) {
Descriptor hostedCache(Iterable<Descriptor> contents) {
return dir(cachePath, [
dir('hosted', [
- async(port.then((p) => dir('localhost%58$p', contents)))
+ async(globalServer.port.then((p) => dir('localhost%58$p', contents)))
])
]);
}
« no previous file with comments | « test/cache/repair/reinstalls_hosted_packages_test.dart ('k') | test/descriptor_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698