Index: tests/standalone/io/secure_server_socket_test.dart |
diff --git a/tests/standalone/io/secure_server_socket_test.dart b/tests/standalone/io/secure_server_socket_test.dart |
index 3eaae5d4e9a8585178e39f7b583f5d20f7230676..da71e0d819f8ea56c9f7b51302001f4ddd01d7f1 100644 |
--- a/tests/standalone/io/secure_server_socket_test.dart |
+++ b/tests/standalone/io/secure_server_socket_test.dart |
@@ -171,7 +171,7 @@ void testSimpleReadWrite() { |
bytesRead += buffer.length; |
if (bytesRead == data.length) { |
verifyTestData(data); |
- client.writeBytes(data); |
+ client.add(data); |
client.close(); |
} |
}, |
@@ -185,7 +185,7 @@ void testSimpleReadWrite() { |
int bytesWritten = 0; |
List<int> dataSent = createTestData(); |
List<int> dataReceived = new List<int>(dataSent.length); |
- socket.writeBytes(dataSent); |
+ socket.add(dataSent); |
socket.close(); // Can also be delayed. |
socket.listen( |
(List<int> buffer) { |