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

Unified Diff: pkg/http/lib/src/io_client.dart

Issue 11830017: Fix ALL the pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | pkg/http/test/client_test.dart » ('j') | utils/pub/git.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http/lib/src/io_client.dart
diff --git a/pkg/http/lib/src/io_client.dart b/pkg/http/lib/src/io_client.dart
index 8cc775a351a46764eba084a1185ff6d613beeb61..764a215ec914568ad8fbeb765bc537137d9963cb 100644
--- a/pkg/http/lib/src/io_client.dart
+++ b/pkg/http/lib/src/io_client.dart
@@ -73,7 +73,10 @@ class IOClient extends BaseClient {
reasonPhrase: response.reasonPhrase));
};
- return pipeCompleter.future.then((_) => completer.future);
+ return Futures.wait([
+ completer.future,
+ pipeCompleter.future
+ ]).then((values) => values.first);
}
/// Closes the client. This terminates all active connections. If a client
« no previous file with comments | « no previous file | pkg/http/test/client_test.dart » ('j') | utils/pub/git.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698