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

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

Issue 13861005: Delay HttpClientResponse until HttpClientRequest is fully sent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove test. Created 7 years, 8 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 | « tests/standalone/io/http_client_request_test.dart ('k') | tests/standalone/io/regress_6521_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_close_test.dart
diff --git a/tests/standalone/io/http_close_test.dart b/tests/standalone/io/http_close_test.dart
index 44e7e5fad6c03cbabc595b57ca436ebe4417d988..f410f5003385fdeaac57a68560cab815a6fa9162 100644
--- a/tests/standalone/io/http_close_test.dart
+++ b/tests/standalone/io/http_close_test.dart
@@ -69,47 +69,6 @@ void testClientCloseServerListen(int connections) {
}
-void testClientCloseDelayed(int connections) {
- HttpServer.bind().then((server) {
- int closed = 0;
- void check() {
- closed++;
- // Wait for both server and client to see the connections as closed.
- if (closed == connections * 2) {
- Expect.equals(0, server.connectionsInfo().active);
- Expect.equals(server.connectionsInfo().total,
- server.connectionsInfo().idle);
- server.close();
- }
- }
- server.listen((request) {
- request.pipe(request.response)
- .then((_) => check());
- });
- var client = new HttpClient();
- for (int i = 0; i < connections; i++) {
- var req;
- client.post("localhost", server.port, "/")
- .then((request) {
- req = request;
- request.writeBytes(new Uint8List(1024));
- return request.response;
- })
- .then((response) {
- req.close();
- // Ensure we don't accept the response until we have send the entire
- // request.
- response.listen(
- (_) {},
- onDone: () {
- check();
- });
- });
- }
- });
-}
-
-
void testClientCloseSendingResponse(int connections) {
HttpServer.bind().then((server) {
int closed = 0;
@@ -155,7 +114,6 @@ void testClientCloseSendingResponse(int connections) {
void main() {
testClientAndServerCloseNoListen(10);
testClientCloseServerListen(10);
- testClientCloseDelayed(10);
testClientCloseSendingResponse(10);
}
« no previous file with comments | « tests/standalone/io/http_client_request_test.dart ('k') | tests/standalone/io/regress_6521_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698