| Index: tests/standalone/io/regress_8828_test.dart
|
| diff --git a/tests/standalone/io/regress_8828_test.dart b/tests/standalone/io/regress_8828_test.dart
|
| index b801545cf001ed452e4b1c17202d145fc934cf1f..22225c8e5815605185bbbc8bb9e88fd74a4ad12f 100644
|
| --- a/tests/standalone/io/regress_8828_test.dart
|
| +++ b/tests/standalone/io/regress_8828_test.dart
|
| @@ -21,18 +21,15 @@ void main() {
|
| });
|
|
|
| HttpClient client = new HttpClient();
|
| - client.get("127.0.0.1", server.port, "/")
|
| - .then((HttpClientRequest request) {
|
| - return request.close();
|
| - })
|
| - .then((HttpClientResponse response) {
|
| - List<int> body = new List();
|
| - response.listen(body.addAll,
|
| - onDone: () {
|
| - Expect.equals("first line\nsecond line\n",
|
| - new String.fromCharCodes(body));
|
| - server.close();
|
| - });
|
| - });
|
| + client.get("127.0.0.1", server.port, "/").then((HttpClientRequest request) {
|
| + return request.close();
|
| + }).then((HttpClientResponse response) {
|
| + List<int> body = new List();
|
| + response.listen(body.addAll, onDone: () {
|
| + Expect.equals(
|
| + "first line\nsecond line\n", new String.fromCharCodes(body));
|
| + server.close();
|
| + });
|
| + });
|
| });
|
| }
|
|
|