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

Unified Diff: tests/standalone/io/http_connection_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_connection_close_test.dart
diff --git a/tests/standalone/io/http_connection_close_test.dart b/tests/standalone/io/http_connection_close_test.dart
index b11499b7dbf385a10922001573545cba3710bfe9..c46dd417a4fb0f25be4f95aafee45e9b690f516f 100644
--- a/tests/standalone/io/http_connection_close_test.dart
+++ b/tests/standalone/io/http_connection_close_test.dart
@@ -66,10 +66,11 @@ void testStreamResponse() {
resp.inputStream.onData = () {
bytes += resp.inputStream.read().length;
if (bytes > 100) {
- client.shutdown();
+ client.shutdown(force: true);
}
};
};
+ connection.onError = (e) => Expect.isTrue(e is HttpException);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698