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

Unified Diff: sdk/lib/_internal/pub/test/test_pub.dart

Issue 415373002: Limit pub to 16 concurrent HTTP requests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « sdk/lib/_internal/pub/lib/src/http.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/test_pub.dart
diff --git a/sdk/lib/_internal/pub/test/test_pub.dart b/sdk/lib/_internal/pub/test/test_pub.dart
index 1bbf30716558b80ec23a70b3ae1d5ec1a4d758f2..6729e0d3b25317894c82083966ac3de1b98351b3 100644
--- a/sdk/lib/_internal/pub/test/test_pub.dart
+++ b/sdk/lib/_internal/pub/test/test_pub.dart
@@ -835,10 +835,10 @@ Iterable<String> pkg, Map<String, String> hosted}) {
/// Note that this will only affect HTTP requests made via http.dart in the
/// parent process.
void useMockClient(MockClient client) {
- var oldInnerClient = httpClient.inner;
- httpClient.inner = client;
+ var oldInnerClient = innerHttpClient;
+ innerHttpClient = client;
currentSchedule.onComplete.schedule(() {
- httpClient.inner = oldInnerClient;
+ innerHttpClient = oldInnerClient;
}, 'de-activating the mock client');
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/http.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698