Index: tests/standalone/io/secure_multiple_client_server_test.dart |
diff --git a/tests/standalone/io/secure_multiple_client_server_test.dart b/tests/standalone/io/secure_multiple_client_server_test.dart |
index c2080b8dd79f402b33cdfe211fc0c015ae223f9e..dc6720fef0548d79e6afa1e487cbf1559379fbc3 100644 |
--- a/tests/standalone/io/secure_multiple_client_server_test.dart |
+++ b/tests/standalone/io/secure_multiple_client_server_test.dart |
@@ -26,7 +26,7 @@ Future<SecureServerSocket> startServer() { |
String received = new String.fromCharCodes(message); |
Expect.isTrue(received.contains("Hello from client ")); |
String name = received.substring(received.indexOf("client ") + 7); |
- client.writeBytes("Welcome, client $name".codeUnits); |
+ client.add("Welcome, client $name".codeUnits); |
client.close(); |
}); |
}); |
@@ -36,7 +36,7 @@ Future<SecureServerSocket> startServer() { |
Future testClient(server, name) { |
return SecureSocket.connect(HOST_NAME, server.port).then((socket) { |
- socket.writeBytes("Hello from client $name".codeUnits); |
+ socket.add("Hello from client $name".codeUnits); |
socket.close(); |
return socket.fold(<int>[], (message, data) => message..addAll(data)) |
.then((message) { |