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

Unified Diff: tests/standalone/io/regress_6521_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: 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_close_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/regress_6521_test.dart
diff --git a/tests/standalone/io/regress_6521_test.dart b/tests/standalone/io/regress_6521_test.dart
index aa8a9647a14b0b23c67acdf7752629ddcde4699d..37607b79072cde2b1641bf9b2b34f835a33a3a15 100644
--- a/tests/standalone/io/regress_6521_test.dart
+++ b/tests/standalone/io/regress_6521_test.dart
@@ -4,6 +4,7 @@
//
// Regression test for http://code.google.com/p/dart/issues/detail?id=6393.
+import "dart:async";
Søren Gjesse 2013/04/09 10:44:35 Maybe just remove this test.
Anders Johnsen 2013/04/09 10:48:42 Done.
import "dart:io";
import "dart:uri";
@@ -23,18 +24,14 @@ void main() {
// Keep a reference to the client request object.
clientRequest = request;
request.writeBytes([0]);
+ new Timer(const Duration(milliseconds: 200), () {
+ server.close();
+ client.close();
+ });
return request.response;
})
.then((response) {
- // Wait with closing the client request until the response headers
- // are done.
- clientRequest.close();
- response.listen(
- (_) {},
- onDone: () {
- client.close();
- server.close();
- });
+ Expect.fail("Unexpected response");
});
});
}
« no previous file with comments | « tests/standalone/io/http_close_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698