Index: tests/standalone/io/socket_test.dart |
diff --git a/tests/standalone/io/socket_test.dart b/tests/standalone/io/socket_test.dart |
index 09e384b798d04df9b738dbbbff40488ce7131f49..a405c05ad63c1de259d5cd958d6442ef1b1aa423 100644 |
--- a/tests/standalone/io/socket_test.dart |
+++ b/tests/standalone/io/socket_test.dart |
@@ -114,7 +114,7 @@ void testConnectConsumerWriteClose() { |
ServerSocket.bind().then((server) { |
server.listen((_) { }); |
Socket.connect("127.0.0.1", server.port).then((socket) { |
- socket.writeBytes([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); |
+ socket.add([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); |
socket.close(); |
socket.done.then((_) { |
socket.destroy(); |
@@ -156,7 +156,7 @@ void testConnectStreamDataClose(bool useDestroy) { |
ServerSocket.bind().then((server) { |
server.listen( |
(client) { |
- client.writeBytes(sendData); |
+ client.add(sendData); |
if (useDestroy) { |
client.destroy(); |
} else { |
@@ -172,7 +172,7 @@ void testConnectStreamDataClose(bool useDestroy) { |
Expect.isFalse(onDoneCalled); |
onDoneCalled = true; |
if (!useDestroy) Expect.listEquals(sendData, data); |
- socket.writeBytes([0]); |
+ socket.add([0]); |
socket.close(); |
server.close(); |
port.close(); |
@@ -187,7 +187,7 @@ void testConnectStreamDataCloseCancel(bool useDestroy) { |
ServerSocket.bind().then((server) { |
server.listen( |
(client) { |
- client.writeBytes(sendData); |
+ client.add(sendData); |
if (useDestroy) { |
client.destroy(); |
} else { |