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

Unified Diff: test/get/hosted/does_no_network_requests_when_possible_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
« no previous file with comments | « test/get/hosted/cached_pubspec_test.dart ('k') | test/get/hosted/stay_locked_if_compatible_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/get/hosted/does_no_network_requests_when_possible_test.dart
diff --git a/test/get/hosted/does_no_network_requests_when_possible_test.dart b/test/get/hosted/does_no_network_requests_when_possible_test.dart
index d08d3990590307c557d3ae6c0388bedb41d10cd0..9330121ef7b3379cf8be596fed192bf5a87743d3 100644
--- a/test/get/hosted/does_no_network_requests_when_possible_test.dart
+++ b/test/get/hosted/does_no_network_requests_when_possible_test.dart
@@ -24,7 +24,7 @@ main() {
// Clear the cache. We don't care about anything that was served during
// the initial get.
- getRequestedPaths();
+ globalServer.clearRequestedPaths();
// Run the solver again now that it's cached.
pubGet();
@@ -34,7 +34,7 @@ main() {
// The get should not have done any network requests since the lock file is
// up to date.
- getRequestedPaths().then((paths) {
+ globalServer.requestedPaths.then((paths) {
expect(paths, isEmpty);
});
});
« no previous file with comments | « test/get/hosted/cached_pubspec_test.dart ('k') | test/get/hosted/stay_locked_if_compatible_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698