Index: tests/standalone/io/http_outgoing_size_test.dart |
diff --git a/tests/standalone/io/http_outgoing_size_test.dart b/tests/standalone/io/http_outgoing_size_test.dart |
index 406bcaf5646cba0b013fc5c9c89077cbca2a2816..c84708a54f64dc96615ba27f0aed932d9377b9d3 100644 |
--- a/tests/standalone/io/http_outgoing_size_test.dart |
+++ b/tests/standalone/io/http_outgoing_size_test.dart |
@@ -33,27 +33,22 @@ void testChunkedBufferSizeMsg() { |
request.response.close(); |
}); |
var client = new HttpClient(); |
- client.get('127.0.0.1', server.port, '/') |
- .then((request) { |
- request.headers.set(HttpHeaders.ACCEPT_ENCODING, ""); |
- return request.close(); |
- }) |
- .then((response) { |
- var buffer = []; |
- response.listen( |
- (data) => buffer.addAll(data), |
- onDone: () { |
- Expect.equals(sendData.length * 8, buffer.length); |
- for (int i = 0; i < buffer.length; i++) { |
- Expect.equals(sendData[i % sendData.length], buffer[i]); |
- } |
- server.close(); |
- }); |
+ client.get('127.0.0.1', server.port, '/').then((request) { |
+ request.headers.set(HttpHeaders.ACCEPT_ENCODING, ""); |
+ return request.close(); |
+ }).then((response) { |
+ var buffer = []; |
+ response.listen((data) => buffer.addAll(data), onDone: () { |
+ Expect.equals(sendData.length * 8, buffer.length); |
+ for (int i = 0; i < buffer.length; i++) { |
+ Expect.equals(sendData[i % sendData.length], buffer[i]); |
+ } |
+ server.close(); |
}); |
+ }); |
}); |
} |
- |
void main() { |
testChunkedBufferSizeMsg(); |
} |