| Index: tests/standalone/io/http_shutdown_test.dart
|
| diff --git a/tests/standalone/io/http_shutdown_test.dart b/tests/standalone/io/http_shutdown_test.dart
|
| index 077eb83b133b19b76a3d8efe6af456d154a60d77..c7e3bbef5ec972b6e4aaa8fb6b7bb66e4792d1cb 100644
|
| --- a/tests/standalone/io/http_shutdown_test.dart
|
| +++ b/tests/standalone/io/http_shutdown_test.dart
|
| @@ -34,7 +34,7 @@ void test1(int totalConnections) {
|
| }
|
|
|
|
|
| -void test2(int totalConnections, int outputStreamWrites) {
|
| +void test2(int totalConnections) {
|
| // Server which responds without waiting for request body.
|
| HttpServer server = new HttpServer();
|
| server.listen("127.0.0.1", 0, backlog: totalConnections);
|
| @@ -49,8 +49,7 @@ void test2(int totalConnections, int outputStreamWrites) {
|
| HttpClientConnection conn = client.get("127.0.0.1", server.port, "/");
|
| conn.onRequest = (HttpClientRequest request) {
|
| request.contentLength = -1;
|
| - for (int i = 0; i < outputStreamWrites; i++)
|
| - request.outputStream.writeString("Hello, world!");
|
| + request.outputStream.writeString("Hello, world!");
|
| request.outputStream.close();
|
| };
|
| conn.onResponse = (HttpClientResponse response) {
|
| @@ -63,13 +62,6 @@ void test2(int totalConnections, int outputStreamWrites) {
|
| }
|
| };
|
| };
|
| - conn.onError = (e) {
|
| - count++;
|
| - if (count == totalConnections) {
|
| - client.shutdown();
|
| - server.close();
|
| - }
|
| - };
|
| }
|
| }
|
|
|
| @@ -176,9 +168,8 @@ void test5(int totalConnections) {
|
| void main() {
|
| test1(1);
|
| test1(10);
|
| - test2(1, 10);
|
| - test2(10, 10);
|
| - test2(10, 1000);
|
| + test2(1);
|
| + test2(10);
|
| test3(1);
|
| test3(10);
|
| test4();
|
|
|