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

Unified Diff: dart/tests/standalone/io/http_cross_process_test.dart

Issue 486853005: Fix idle connection pool issue in dart:io's HttpClient (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed existing tests, removed bogus test, use async_helper for new test Created 6 years, 4 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: dart/tests/standalone/io/http_cross_process_test.dart
diff --git a/dart/tests/standalone/io/http_cross_process_test.dart b/dart/tests/standalone/io/http_cross_process_test.dart
index 1b24c9558c3756dab7fc81b7a13b3ab19c870637..b16763dee9fcda98e63d26aefc3fa4208ba1ff25 100644
--- a/dart/tests/standalone/io/http_cross_process_test.dart
+++ b/dart/tests/standalone/io/http_cross_process_test.dart
@@ -54,6 +54,7 @@ runClient(int port) {
var client = new HttpClient();
client.get('127.0.0.1', port, "/")
.then((request) => request.close())
- .then((response) => response.listen((data) {},
- onDone: () => print('SUCCESS')));
+ .then((response) => response.drain())
+ .then((_) => client.close())
+ .then((_) => print('SUCCESS'));
}
« no previous file with comments | « dart/tests/standalone/io/http_client_timeout_test.dart ('k') | dart/tests/standalone/io/https_bad_certificate_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698