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

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

Issue 11411121: Generate an error for active connections when the HTTP client is shutdown (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed long line Created 8 years, 1 month 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: tests/standalone/io/http_server_early_client_close_test.dart
diff --git a/tests/standalone/io/http_server_early_client_close_test.dart b/tests/standalone/io/http_server_early_client_close_test.dart
index 66a2b06d28d87767bcf14c2d0811bc4551f7d2ce..5d23fc4be9f56f00dc760f3959f18974c657705c 100644
--- a/tests/standalone/io/http_server_early_client_close_test.dart
+++ b/tests/standalone/io/http_server_early_client_close_test.dart
@@ -63,17 +63,18 @@ void testEarlyClose() {
// The empty packet is valid.
// Close while sending header
- add("G", "Connection closed before full header was received");
- add("GET /", "Connection closed before full header was received");
- add("GET / HTTP/1.1", "Connection closed before full header was received");
- add("GET / HTTP/1.1\r\n", "Connection closed before full header was received");
+ String message = "Connection closed before full request header was received";
+ add("G", message);
+ add("GET /", message);
+ add("GET / HTTP/1.1", message);
+ add("GET / HTTP/1.1\r\n", message);
// Close while sending content
add("GET / HTTP/1.1\r\nContent-Length: 100\r\n\r\n",
- "Connection closed before full body was received",
+ "Connection closed before full request body was received",
expectRequest: true);
add("GET / HTTP/1.1\r\nContent-Length: 100\r\n\r\n1",
- "Connection closed before full body was received",
+ "Connection closed before full request body was received",
expectRequest: true);

Powered by Google App Engine
This is Rietveld 408576698