Index: tests/standalone/io/socket_exception_test.dart |
diff --git a/tests/standalone/io/socket_exception_test.dart b/tests/standalone/io/socket_exception_test.dart |
index a6ea31a0a469ad91f36d62e1de1f6a325c33699a..c82f3fbb314809d508e10c64442fdef122510977 100644 |
--- a/tests/standalone/io/socket_exception_test.dart |
+++ b/tests/standalone/io/socket_exception_test.dart |
@@ -89,7 +89,7 @@ class SocketExceptionTest { |
Expect.isFalse(wrongExceptionCaught); |
try { |
List<int> buffer = new List<int>(10); |
- client.writeBytes(buffer); |
+ client.add(buffer); |
} on StateError catch (ex) { |
exceptionCaught = true; |
} catch (ex) { |
@@ -122,7 +122,7 @@ class SocketExceptionTest { |
}); |
Socket.connect("127.0.0.1", server.port).then((client) { |
client.listen((data) {}, onDone: server.close); |
- client.writeBytes(new List.filled(1024 * 1024, 0)); |
+ client.add(new List.filled(1024 * 1024, 0)); |
client.destroy(); |
}); |
}); |
@@ -144,7 +144,7 @@ class SocketExceptionTest { |
Expect.equals(SIZE, count); |
server.close(); |
}); |
- client.writeBytes(new List.filled(SIZE, 0)); |
+ client.add(new List.filled(SIZE, 0)); |
client.close(); |
// Start piping now. |
completer.complete(null); |
@@ -175,7 +175,7 @@ class SocketExceptionTest { |
Expect.isTrue(errors <= 1); |
server.close(); |
}); |
- client.writeBytes(new List.filled(SIZE, 0)); |
+ client.add(new List.filled(SIZE, 0)); |
// Destroy other socket now. |
completer.complete(null); |
var port = new ReceivePort(); |
@@ -200,7 +200,7 @@ class SocketExceptionTest { |
Socket.connect("127.0.0.1", server.port).then((client) { |
const int SIZE = 1024 * 1024; |
int errors = 0; |
- client.writeBytes(new List.filled(SIZE, 0)); |
+ client.add(new List.filled(SIZE, 0)); |
client.close(); |
client.done.catchError((error) { |
server.close(); |