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

Unified Diff: test/get/hosted/avoid_network_requests_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/cache_transformed_dependency_test.dart ('k') | test/get/hosted/cached_pubspec_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/get/hosted/avoid_network_requests_test.dart
diff --git a/test/get/hosted/avoid_network_requests_test.dart b/test/get/hosted/avoid_network_requests_test.dart
index 69afd64e93de6d3b7aa15e8ad49cc98215cfcece..54647e9ccd191bc72a48cd414f1c616170eb6627 100644
--- a/test/get/hosted/avoid_network_requests_test.dart
+++ b/test/get/hosted/avoid_network_requests_test.dart
@@ -27,7 +27,7 @@ main() {
// Clear the cache. We don't care about anything that was served during
// the initial get.
- getRequestedPaths();
+ globalServer.clearRequestedPaths();
// Add "bar" to the dependencies.
d.appDir({
@@ -45,7 +45,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, unorderedEquals([
// Bar should be requested because it's new, but not foo.
"api/packages/bar",
« no previous file with comments | « test/get/cache_transformed_dependency_test.dart ('k') | test/get/hosted/cached_pubspec_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698