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

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

Issue 19804007: Response may fail earlier than after headers are received, in http_response_deadline_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_response_deadline_test.dart
diff --git a/tests/standalone/io/http_response_deadline_test.dart b/tests/standalone/io/http_response_deadline_test.dart
index 5964b61282e0ab322b81805d5958a63712837753..2d3852fc2845361cad9c9f25ad270973141acf99 100644
--- a/tests/standalone/io/http_response_deadline_test.dart
+++ b/tests/standalone/io/http_response_deadline_test.dart
@@ -43,12 +43,11 @@ void testExceedDeadline(int connections) {
for (int i = 0; i < connections; i++) {
futures.add(client.get('localhost', server.port, '/')
.then((request) => request.close())
- .then((response) {
- return response.drain().then((_) {
- Expect.fail("Expected error");
- }, onError: (e) {
- // Expect error.
- });
+ .then((response) => response.drain())
+ .then((_) {
+ Expect.fail("Expected error");
+ }, onError: (e) {
+ // Expect error.
}));
}
Future.wait(futures).then((_) => server.close());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698