Index: tests/standalone/io/http_server_response_test.dart |
diff --git a/tests/standalone/io/http_server_response_test.dart b/tests/standalone/io/http_server_response_test.dart |
index 8cbfaa4396cac5483fa3c60beea6f807717fde0b..be1dfffebbc6df91540cb3fd0557aca21a8e1c31 100644 |
--- a/tests/standalone/io/http_server_response_test.dart |
+++ b/tests/standalone/io/http_server_response_test.dart |
@@ -88,6 +88,7 @@ void testBadResponseAdd() { |
testServerRequest((server, request) { |
request.response.contentLength = 0; |
request.response.writeBytes([0]); |
+ request.response.close(); |
request.response.done.catchError((error) { |
server.close(); |
}, test: (e) => e is HttpException); |
@@ -97,6 +98,7 @@ void testBadResponseAdd() { |
request.response.contentLength = 5; |
request.response.writeBytes([0, 0, 0]); |
request.response.writeBytes([0, 0, 0]); |
+ request.response.close(); |
request.response.done.catchError((error) { |
server.close(); |
}, test: (e) => e is HttpException); |
@@ -107,6 +109,7 @@ void testBadResponseAdd() { |
request.response.writeBytes(new Uint8List(64 * 1024)); |
request.response.writeBytes(new Uint8List(64 * 1024)); |
request.response.writeBytes(new Uint8List(64 * 1024)); |
+ request.response.close(); |
request.response.done.catchError((error) { |
server.close(); |
}, test: (e) => e is HttpException); |