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

Unified Diff: test/get/hosted/cached_pubspec_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/cached_pubspec_test.dart
diff --git a/test/get/hosted/cached_pubspec_test.dart b/test/get/hosted/cached_pubspec_test.dart
index 8899d1fbaa03cb37923a3445e090820d00d5ad84..7d3cf086fedc8a47341f8f4f43406d4f3fe412e7 100644
--- a/test/get/hosted/cached_pubspec_test.dart
+++ b/test/get/hosted/cached_pubspec_test.dart
@@ -18,7 +18,7 @@ main() {
// Clear the cache. We don't care about anything that was served during
// the initial get.
- getRequestedPaths();
+ globalServer.clearRequestedPaths();
d.cacheDir({"foo": "1.2.3"}).validate();
d.packagesDir({"foo": "1.2.3"}).validate();
@@ -27,7 +27,7 @@ main() {
pubGet();
// The get should not have requested the pubspec since it's local already.
- getRequestedPaths().then((paths) {
+ globalServer.requestedPaths.then((paths) {
expect(paths, isNot(contains("packages/foo/versions/1.2.3.yaml")));
});
});
« no previous file with comments | « test/get/hosted/avoid_network_requests_test.dart ('k') | test/get/hosted/does_no_network_requests_when_possible_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698