| Index: tests/standalone/io/http_detach_socket_test.dart
|
| diff --git a/tests/standalone/io/http_detach_socket_test.dart b/tests/standalone/io/http_detach_socket_test.dart
|
| index e3a5ad533345ff848880b4212a340d25072537db..61179fcab4be20882ea30541255f016d7287cbe5 100644
|
| --- a/tests/standalone/io/http_detach_socket_test.dart
|
| +++ b/tests/standalone/io/http_detach_socket_test.dart
|
| @@ -19,7 +19,7 @@ void testServerDetachSocket() {
|
| Expect.isNotNull(socket);
|
| var body = new StringBuffer();
|
| socket.listen(
|
| - (data) => body.add(new String.fromCharCodes(data)),
|
| + (data) => body.write(new String.fromCharCodes(data)),
|
| onDone: () => Expect.equals("Some data", body.toString()));
|
| socket.addString("Test!");
|
| socket.close();
|
| @@ -33,7 +33,7 @@ void testServerDetachSocket() {
|
| "Some data");
|
| var body = new StringBuffer();
|
| socket.listen(
|
| - (data) => body.add(new String.fromCharCodes(data)),
|
| + (data) => body.write(new String.fromCharCodes(data)),
|
| onDone: () {
|
| Expect.equals("HTTP/1.1 200 OK\r\n"
|
| "content-length: 0\r\n"
|
| @@ -74,7 +74,7 @@ void testClientDetachSocket() {
|
| "Test!");
|
| var body = new StringBuffer();
|
| socket.listen(
|
| - (data) => body.add(new String.fromCharCodes(data)),
|
| + (data) => body.write(new String.fromCharCodes(data)),
|
| onDone: () {
|
| Expect.equals("GET / HTTP/1.1\r\n"
|
| "content-length: 0\r\n"
|
| @@ -93,7 +93,7 @@ void testClientDetachSocket() {
|
| response.detachSocket().then((socket) {
|
| var body = new StringBuffer();
|
| socket.listen(
|
| - (data) => body.add(new String.fromCharCodes(data)),
|
| + (data) => body.write(new String.fromCharCodes(data)),
|
| onDone: () {
|
| Expect.equals("Test!",
|
| body.toString());
|
|
|