| 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());
|
|
|